A
ad
Hi,
I use the code below to get the IP of computer:
My computer has only one ip: 192.168.0.100,
But there are tree IPs get by GetHostEntry:
192.168.0.100
192.168.0.1
192.168.122.1
Why?
//--------------------------------------------------------------------------------------
IPHostEntry ipEntry = Dns.GetHostEntry(strHostName);
IPAddress[] addr = ipEntry.AddressList;
I use the code below to get the IP of computer:
My computer has only one ip: 192.168.0.100,
But there are tree IPs get by GetHostEntry:
192.168.0.100
192.168.0.1
192.168.122.1
Why?
//--------------------------------------------------------------------------------------
IPHostEntry ipEntry = Dns.GetHostEntry(strHostName);
IPAddress[] addr = ipEntry.AddressList;