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
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: