How to get localhost IP address and set localhost IP address for XP or W2k?

  • Thread starter Thread starter Jia
  • Start date Start date
Hi Jia,

You can try this one

Me.TextBox1.Text = ""
'IP
Dim myIpadres As System.Net.IPAddress
Dim strhost As String
Dim myWorkstation As String = System.Net.Dns.GetHostName()
Dim IPAdres As String =
System.Net.Dns.Resolve(myWorkstation).AddressList(0).ToString
Me.TextBox1.Text = myWorkstation & "=" & IPAdres & vbCrLf

I hope it helps?

cor
 
Hi C,

Your answer is right, however when was mean the IP adres of the local
workstation at the host.

I forgot to write that in my message.

Cor
 
Brrrrrrr
Your answer is right, however when was mean the IP adres of the local
workstation at the host.
Your answer is right, however I added mine for when was ment the IP adres of
the local workstation from the host or something (the netwerk IP adres).

Cor
 
Back
Top