System.Net.IPAddress[] addressList = Dns.GetHostByName(Dns.GetHostName()).AddressList; Label1.Text = addressList[0].ToString();