Massyn has asked for the wisdom of the Perl Monks concerning the following question:
#!/fellow/monks.pl
In a particular app, I'm using the `ipconfig` command to determine the IP address of a Windows machine. I'd like to use some perl module to do that, as I like the code to be portable to different OSs.
Can the wise ones point me to some code that will reveal the IP address(es) to me? Please note, I'm not doing a CGI, so using $ENV{REMOTE_ADDR} won't solve my problem.
Thanks!
#!/massyn.pl The early worm gets caught by the bird.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: What is my IP address?
by broquaint (Abbot) on Apr 25, 2003 at 09:34 UTC | |
Re: What is my IP address?
by Abigail-II (Bishop) on Apr 25, 2003 at 09:54 UTC | |
Re: What is my IP address?
by mce (Curate) on Apr 25, 2003 at 09:42 UTC | |
Re: What is my IP address?
by BrowserUk (Patriarch) on Apr 25, 2003 at 10:04 UTC | |
Re: What is my IP address?
by Biker (Priest) on Apr 25, 2003 at 10:04 UTC | |
Re: What is my IP address?
by zengargoyle (Deacon) on Apr 25, 2003 at 10:25 UTC | |
Re: What is my IP address?
by Massyn (Hermit) on Apr 25, 2003 at 11:48 UTC |
Back to
Seekers of Perl Wisdom