The reason I ask is because I can’t get it to connect this way, but if I put the IP in (such as myTcpSocket.address = “199.199.199.199”) then it works. When I PING the “dev.myserver.com” from the command-line in windows, the same IP address I use to connect comes back with the reply. Anybody have any ideas?
Sometimes I need to query specific DNS servers from Windows 7/8 client. The lookUpIpAddress function doesn’t have that option.
As a workaround I do this:
[code] Dim s As Shell = New Shell
Dim setDNS, unsetDNS as string
setDNS = “netsh interface ip set dns “+ “”“Wireless Network Connection”””+" “+ “static 8.8.8.8”
unsetDNS = “netsh interface ip set dns “+ “”“Wireless Network Connection”””+” "+ “static 192.168.1.254”
s.Execute(setDNS)
dim ip as string = System.Network.LookupIPAddress(“forum.xojo.com”)
MsgBox(ip)