Determining IP addr via script?

Michael Hipp mhipp
Mon May 17 11:34:34 PDT 2004


I have a Linux box behind a LinkSys NAT router that gets a public address 
from DSL on the WAN side. I'm wanting to be able from the Linux box to 
determine what addr has been assigned by SWBell to the LinkSys box.

Thanks,
Michael

On Monday 08 July 2002 04:27 pm, Net Llama! wrote:
> This really is a loaded question.  If you're not looking for the IP bound
> to your NICs primary interface, then you're getting into all kinds of
> other issues, such as NAT, IP-Masq, protocols, and the like.
>
> http://www.whatismyip.com is hardly accurate unless you have a very
> simplisitic setup.
>
> On Mon, 8 Jul 2002, 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.)
> >
> > Thanks,
> > Michael
> >
> > _______________________________________________
> > Linux-users mailing list -
> > http://linux-sxs.org/mailman/listinfo/linux-users Subscribe/Unsubscribe
> > info, Archives,and Digests are located at the above URL.





More information about the Linux-users mailing list