Better way to detect unreachable IP's

jaeman

Member
Joined
Jul 15, 2004
Messages
10
Location
Australia
Programming Experience
1-3
Hey there, i have a program im working on to detect host & domain names via an ip address.

The problem im having is that it is taking a long time if the ip is unreachable, the code is below...

Dim dDNS As Net.Dns
Dim sHost As String

Try
sHost = dDNS.GetHostByAddress(IP).HostName.ToString
Catch
sHost = "Unreachable"
End Try

Return sHost

Can anyone show me a better way to detect an unreachable IP or a more efficient way to detect IP's, thanks Jaeman
 
Last edited:
Back
Top