Green-Thumb wrote:
> I have been trying to write a script for retrieving the IP from a
> client.
>
> I want to be able to send an email with the script as an
> attachement and my client then would receive the email and run the
> script. The script would send me an email back containing the
> clients IP.
Well, you could do many things for this. Since your method has the client
involved anyway - why not just have them visit
http://www.whatismyip.com/
and then copy/paste their IP into an email to you?
If you want the internal IP as well - that is easy enough to get - many
freeware applications you could send them links to already give them that
information and even copy to the clipboard. Example:
http://keir.net/ip2.html
I wouldn't re-invent the wheel if you don't need to. Heck - all the
machines in the domains I manage email me their internal/external IPs upon
startup. Batch script and BLAT...
--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html