Hi
I wonder if anyone can help?
I am new to Visual Web Developer and .NET I am trying to get the pc name from its IP, I have code to get ip from pc name :
Protected Sub DNSLookup(ByVal IPAddress As String)
Try
'performs the DNS lookup
Dim returnvalue = ""
Dim he As IPHostEntry = Dns.GetHostEntry(IPAddress)
Dim ip_addrs As IPAddress() = he.AddressList
txtIPs.Text = ""
For Each ip As IPAddress In ip_addrs
txtIPs.Text = ip.ToString()
Next ip
Catch ex As System.Exception
lblStatus.Text = ex.ToString()
End Try
End Sub
But I want it the other way around, can anyone help please?