get ip address

November 28, 2008 by admin  
Filed under VB.net

get ip address with VB.net

Module Module1

Sub Main()
Dim h As System.Net.IPHostEntry = System.Net.Dns.GetHostByName(System.Net.Dns.GetHostName)
Console.WriteLine(CType(h.AddressList.GetValue(0), Net.IPAddress).ToString)
End Sub

End Module

Related posts:

  1. find the hostname for a known IP address find the hostname for a known IP address with C...
  2. Displays your IP address and hostname This example will display your IP address and hostname using...
  3. list serial ports This VB.net example shows how to list all serial ports...
  4. random numbers This example shows how to produce random numbers in VB.net...
  5. display running processes in a console application This Visual Basic.net displays running processes in a console application...

Related posts brought to you by Yet Another Related Posts Plugin.

Speak Your Mind

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!