Determining IP addr via script?
edj
edj
Mon May 17 11:34:35 PDT 2004
On Mon July 8 2002 05:22 pm, Michael Hipp wrote:
> Anyone know a simple way to determine what your public IP address
> appears to be via a shell script? I can do it with a web browser by
> going to http://www.whatismyip.com .
>
> (BTW, I'm not talking about the IP addr assigned to a NIC and readable
> by ifconfig.)
My knowledge is so limited, I hesitate to say, but I use the following,
picked up from somewhere . . . .
#!/bin/bash
lynx -auth=admin:admin http://192.168.1.1/Status.htm
Connects to the router and gives IP & all the other stuff, as well.
--
Ed Jabbour
More information about the Linux-users
mailing list