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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -