Get Host By Address : IPHostEntry « Socket Network « VB.Net Tutorial






Imports System.Net
Imports System.Net.Sockets


Public Class Tester
    Public Shared Sub Main
        Dim ipAddr As IPAddress
        Dim remoteHostEntry As IPHostEntry
    
        Try
          ipAddr = IPAddress.Parse("68.178.206.138")
    
          remoteHostEntry = Dns.GetHostByAddress(ipAddr)
    
          Console.WriteLine(remoteHostEntry.HostName)
    
        Catch ex As SocketException
          Console.WriteLine(ex.StackTrace.ToString)
        End Try
    End Sub
End Class
ip-68-178-206-138.ip.secureserver.net








22.6.IPHostEntry
22.6.1.Get Address List from IPHostEntry
22.6.2.Get Host By Address
22.6.3.Get Host By Name
22.6.4.Get Aliases from IPHostEntry