c# - IP/name resolve conflict -
i have weird problem: ip & name resolve conflicts, here code:
string hostname = system.net.dns.gethostentry("192.168.x.y").hostname; // output:laptop03 system.net.ipaddress[] addresslist = system.net.dns.gethostaddresses("laptop3"); //output:192.168.x.y2
you can see, 192.168.x.y resolved laptop03, laptop03 resolved 192.168.x.y2.
why 2 addresses different?
it causing tcp connection failure while using ip address, tcp connection succeeded using name
Comments
Post a Comment