vb.net gethostbyaddress help
thanks
Scott
Public Function iptohost(ByVal ip As String)
Dim dns As System.Net.Dns
Dim address As System.Net.IPHostEntry
Try
address = dns.GetHostByAddress(ip)
iptohost = address.HostName
Catch e As SocketException
MsgBox("SocketException caught!!!")
MsgBox(("Source : " + e.Source))
MsgBox(("Message : " + e.Message))
Catch e As FormatException
MsgBox("FormatException caught!!!")
MsgBox(("Source : " + e.Source))
MsgBox(("Message : " + e.Message))
Catch e As ArgumentNullException
MsgBox("ArgumentNullException caught!!!")
MsgBox(("Source : " + e.Source))
MsgBox(("Message : " + e.Message))
Catch e As Exception
MsgBox("Exception caught!!!")
MsgBox(("Source : " + e.Source))
MsgBox(("Message : " + e.Message))
End Try
End Function

