Quote:
Originally Posted by _powerade_
Hi, try this:
Code:
Dim hostNameOrAddress As String = YourIPadress
Dim returnValue As IPHostEntry
Try
returnValue = Dns.GetHostEntry(hostNameOrAddress)
MessageBox.Show(returnValue.HostName())
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
|
thanks for your reply. unfortunately, when i tried this code that you had given, it only returns the given ip address. what i needed is that, if that ip address was assigned to a, for example, a network printer or a router, it will display, either the name of the router or some kind of description.
thanks anyway for the reply. it will be of useful future reference.