string strHostName = System.Net.Dns.GetHostName(); IPHostEntry ipEntry = System.Net.Dns.GetHostEntry(strHostName); IPAddress[] addr = ipEntry.AddressList; for (int i = 0; i < addr.Length; i++) { MessageBox.Show("IP Address {0}: {1} " + addr[i].ToString()); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)