\
Thu Dec 01 20:44:51 CST 2005
> If it's just your local machine as you suggested there are multiple
> ways. An easy way is to shell IPCONFIG and read the output. If you
> want examples of this method, I would check out this "Tales from the
> Script" article on Technet.
Thanks. I have used ipconfig for that in the past. It is rather awkward,
especially if you are also on a LAN and have two or more IP's associated with
your computer. I was hoping the DLL ESP recommended would provide a more direct
way to read the WAN IP.
I currently use a file on a server:
'--------------------
Set IE = CreateObject("InternetExplorer.Application")
IE.navigate "
http://lists.thedatalist.com/myip.php"
do while (IE.busy)
wscript.sleep 1000
loop
IP = IE.document.body.innerText
'--------------------
but that is funky and depends on the permanence and reliability of a remote
system.
--
Crash