What I do (I use @home) which uses DHCP. That fills in the IP addy for
me, and then I switch the network configuration to 'Manual' - I use
the IP addy that I got from the DHCP server and just lock it in!
That way, you'll always have the same IP address and if you need to, you
can just hardcode that addy in any scripts you have!
sneaky sneaky.
justin.
s k a z a t - http://skazat.com
On Thursday, August 23, 2001, at 03:16 PM, Timothy A. Canon wrote:
> I am connected to the internet via a DHCP server. How can I get my IP
> address in a perl script? Is there a function or module I can use or
> will I have to use a system command?
>
> Thanks,
>
> Tim Canon
>