
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:
Dim s As String = ""
Dim addressList As System.Net.IPAddress() = Dns.GetHostByName(Dns.GetHostName()).AddressList
Dim i As Integer
For i = 0 To addressList.Length - 1
s += addressList(i).ToString() + ControlChars.Lf
Next i
textBox1.Text = s
Wkr,
sparrow1