
Find IP address of a remote host
Find IP address of a remote
Hi. I'm trying to create a script that will return the IP address of a
remote host using MSWinsock. Here's my code:
Dim ipSock
Dim remoteHost
Dim remotePort
remoteHost = "your.url.here"
remotePort = 23
Set ipSock=CreateObject("MSWinsock.Winsock")
ipSock.Connect remoteHost, remotePort
MsgBox ipSock.RemoteHostIP
Set ipSock = Nothing
Any ideas?