I was looking around how to get a host's IP, this is the code I found. Thought might be useful to someone.

vb.net Code:
  1. Public Sub GetHostsIP()
  2.         Dim i As Integer
  3.         Dim ipE As IPHostEntry = Dns.GetHostEntry("HostName")
  4.         Dim IpA() As IPAddress = ipE.AddressList
  5.         For i = 0 To IpA.GetUpperBound(0)
  6.             Console.Write("IP Address {0}: {1} ", i, IpA(i).ToString)
  7.         Next
  8.         Console.WriteLine("Press any key to close")
  9.         Console.ReadKey(True)
  10. End Sub