Resolve host name to an ip address

后端 未结 5 731
醉话见心
醉话见心 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:59

    This is hard to answer without more detail about the network architecture. Some things to investigate are:

    • Is it possible that client and/or server is behind a NAT device, a firewall, or similar?
    • Is any of the IP addresses involved a "local" address, like 192.168.x.y or 10.x.y.z?
    • What are the host names, are they "real" DNS:able names or something more local and/or Windows-specific?
    • How does the client look up the server? There must be a place in code or config data that holds the host name, simply try using the IP there instead if you want to avoid the lookup.

提交回复
热议问题