Get The IP of my computer

  • Thread starter Thread starter shachar
  • Start date Start date
S

shachar

hi all.
what's the easiest way to get the ip of my computer:
127.10.142.25 ....
thanks.
 
Hi

Dim myIP As System.Net.IPAddress
Dim myPC As String = System.Net.Dns.GetHostName()
Dim myIPAdres As String =
System.Net.Dns.Resolve(myPC).AddressList(0).ToString()MsgBox(myPC & "=" &
myIPAdres)

hth Peter
 
Shachar,

It is just the same as Peter, only written in another way

MessageBox.Show(System.Net.Dns.Resolve(System.Net.Dns.GetHostName()).Address
List(0).ToString())

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top