Quote Originally Posted by asm
Hi

How to get the ip address of a machine


thanks

asm
Hi,

You can try this way to get your IP address;

VB Code:
  1. Dim s As String = ""
  2.      Dim addressList As System.Net.IPAddress() = Dns.GetHostByName(Dns.GetHostName()).AddressList
  3.  
  4.      Dim i As Integer
  5.  
  6.      For i = 0 To addressList.Length - 1
  7.           s += addressList(i).ToString() + ControlChars.Lf
  8.      Next i
  9.      textBox1.Text = s


Wkr,

sparrow1