IP-Address(C#)

try this...
C#:
		private void button2_Click(object sender, System.EventArgs e)
		{
			System.Net.IPHostEntry s=System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName());
			MessageBox.Show(s.AddressList[0].ToString());
		}
 
Back
Top