
4.05.2002
Machine IP Address
string MyName = Dns.GetHostName();
string MyIP = Dns.GetHostByName(MyName).AddressList[0].ToString();
Didn't see a way to get the IP address without looking up the name in the DNS. Wonder what happens if the name is not in the DNS??
Comments:
Post a Comment