Resolve host name to an ip address

后端 未结 5 733
醉话见心
醉话见心 2021-02-01 02:33

I developed a client/server simulation application. I deployed client and server on two different Windows XP machines. Somehow, the client is not able to send requests to the se

5条回答
  •  情话喂你
    2021-02-01 02:55

    You could use a C function getaddrinfo() to get the numerical address - both ipv4 and ipv6. See the example code here

提交回复
热议问题