Networking Forums

Networking Forums > Computer Networking > Linux Networking > need howto get dynamic IP off wireless gateway/router

Reply
Thread Tools Display Modes

need howto get dynamic IP off wireless gateway/router

 
 
Eric
Guest
Posts: n/a

 
      02-21-2004, 07:52 AM
I have a wireless network running with a Linksys router/gateway. My DSL
(with dynamic IP) goes through the Linksys to get at any of my machines,
including the linux one. So to connect to my linux box from outside my lan
I need to get the current, external IP with my linux box and post that IP
somewhere outside the lan. ifconfig only shows the local IP within my lan.
Anyone know of a quick & simple way to check the external IP with a Linksys
router?

I suppose there is a long way: log into the setup (html), go to the status
page, and pars out the current IP. But I'd like something quicker, cleaner,
easier, if it exists.

Thanks


 
Reply With Quote
 
 
 
 
Christian Mund
Guest
Posts: n/a

 
      02-21-2004, 02:01 PM
In comp.os.linux.networking Eric wrote:

> Anyone know of a quick & simple way to check the external IP with a
> Linksys router?


What about external services like http://www.myip.com ? The output can
easly be parsed if needed.


Christian

--
Endlich Linux! - http://mundoss.de
 
Reply With Quote
 
David Efflandt
Guest
Posts: n/a

 
      02-21-2004, 05:30 PM
On Sat, 21 Feb 2004 08:52:39 GMT, Eric <(E-Mail Removed)> wrote:
> I have a wireless network running with a Linksys router/gateway. My DSL
> (with dynamic IP) goes through the Linksys to get at any of my machines,
> including the linux one. So to connect to my linux box from outside my lan
> I need to get the current, external IP with my linux box and post that IP
> somewhere outside the lan. ifconfig only shows the local IP within my lan.
> Anyone know of a quick & simple way to check the external IP with a Linksys
> router?


Most of us with dynamic IPs use dynamic DNS to access our systems from the
internet. I use no-ip.com. Their update client can either run from ppp
or dhcp scripts if directly connected to dsl/cable modem, or as a daemon
to have them grab your public IP if behind a broadband router.

Although, when I was behind a router, I hacked its firmware to display its
WAN IP without have to login, where I could monitor it with a Perl LWP
daemon script (to check it more often, while minimizing internet traffic).

--
David Efflandt - All spam ignored http://www.de-srv.com/
 
Reply With Quote
 
ynotssor
Guest
Posts: n/a

 
      02-21-2004, 08:12 PM
"Eric" <(E-Mail Removed)> wrote in message
news:r%EZb.42142$(E-Mail Removed) om

> I have a wireless network running with a Linksys router/gateway. My
> DSL (with dynamic IP) goes through the Linksys to get at any of my
> machines, including the linux one. So to connect to my linux box
> from outside my lan I need to get the current, external IP with my
> linux box and post that IP somewhere outside the lan. ifconfig only
> shows the local IP within my lan. Anyone know of a quick & simple way
> to check the external IP with a Linksys router?


Your use of "inside" and "outside" has some confusing inconsistency, but if
I understand correctly:

wget -O- http://whatismyip.com 2> /dev/null | awk '/Your IP/ {print $4}'


tony

--
use hotmail for any email replies



-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: displaying default page when connecting to wireless lan router - howto? Char Jackson Network Routers 1 08-27-2009 03:27 AM
Dynamic Default Gateway?? Sergio Henrique Windows Networking 10 07-15-2008 07:28 PM
Mandrake 10, gateway/firewall setup HOWTO? zhex900 Linux Networking 2 12-23-2004 02:02 PM
Q: Howto make a wireless router work without dsl steve Wireless Internet 11 01-21-2004 06:19 PM
Dynamic gateway roaming with IP aliasing, possible? JGB Linux Networking 2 08-24-2003 06:07 PM



1 2 3 4 5 6 7 8 9 10 11