Same as with ifconfig, the kernel only knows its local IP. If you're
behind a DSL modem that does NAT, your machine has _NO_ way of knowing the
public IP from local information. You MUST query the modem for the
IP. Some modems have a telnet server (like the Cisco's), most do SNMP,
some have HTTP interfaces. The information's gotta come out of one of
those.
MSG
On Fri, 3 Nov 2000, Terry Williams wrote:
> Ok how about this... start up some network process like lirq or something
> and then do
> netstat |less
> usually your ip will be in the active connections.
> ----- Original Message -----
> From: John Aldrich <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, November 03, 2000 10:00 PM
> Subject: Re: Find IP for DSL
>
>
> > On Fri, 03 Nov 2000, Gordon Messmer wrote:
> > > On Fri, 3 Nov 2000, John Aldrich wrote:
> > >
> > > > Hmm...ever think of tracerouting to your ISP's router and getting
> > > > YOUR address? :-)
> > >
> > > traceroute doesn't do that for me on any machine I've got :)
> > >
> > > My DSL modem doesn't even alter the TTL, so it doesn't show up in the
> > > traceroute.
> > >
> > Hmm...you know...that *could* be a problem...maybe there's
> > an interface on the DSL modem (telnet or web???) that'll
> > show that info. I know my Netgear ISDN router will tell me
> > that info if I go to the right menu option when telnetted
> > in.
> > John
> >
> >
> >
> > _______________________________________________
> > Redhat-list mailing list
> > [EMAIL PROTECTED]
> > https://listman.redhat.com/mailman/listinfo/redhat-list
> >
>
>
>
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list
>
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list