B
Brian
Hi.. I don't get it.... this procedure is obsolete.. that is obsolete....
I am trying to rewrite a program i wrote in vb 6 years ago
Dim hostIPAddress As IPAddress = IPAddress.Parse(Me.txtLookupHostIP.Text)
Dim hostinfo As IPHostEntry =
System.Net.Dns.GetHostEntry(hostIPAddress.ToString)
?system.Net.Dns.Resolve(hostIPAddress.ToString)
{System.Net.IPHostEntry}
AddressList: {Length=1}
Aliases: {Length=0}
HostName: "ComputerName.DomainName"
?System.Net.Dns.GetHostEntry(hostIPAddress.ToString)
Run-time exception thrown : System.Net.Sockets.SocketException - No such
host is known
warnings say not to use resolve, but to use GetHostEntry
I am just trying to pass an IP address and get the Host name... either from
the internet or local network.. or pass the host name and get the ip..
I am trying to rewrite a program i wrote in vb 6 years ago
Dim hostIPAddress As IPAddress = IPAddress.Parse(Me.txtLookupHostIP.Text)
Dim hostinfo As IPHostEntry =
System.Net.Dns.GetHostEntry(hostIPAddress.ToString)
?system.Net.Dns.Resolve(hostIPAddress.ToString)
{System.Net.IPHostEntry}
AddressList: {Length=1}
Aliases: {Length=0}
HostName: "ComputerName.DomainName"
?System.Net.Dns.GetHostEntry(hostIPAddress.ToString)
Run-time exception thrown : System.Net.Sockets.SocketException - No such
host is known
warnings say not to use resolve, but to use GetHostEntry
I am just trying to pass an IP address and get the Host name... either from
the internet or local network.. or pass the host name and get the ip..