How to Get Public IP From LinkSys Router?

Drew Tomlinson drew at
Wed Sep 3 14:50:55 PDT 2003

----- Original Message ----- 
From: "Bill Campbell" <freebsd at>
To: "FreeBSD Questions" <freebsd-questions at>
Sent: Wednesday, September 03, 2003 2:09 PM
Subject: Re: How to Get Public IP From LinkSys Router?

> On Wed, Sep 03, 2003, Drew Tomlinson wrote:
> >I need to get my public IP address from a LinkSys cable router and
> >have any idea where to start.  The LinkSys is doing NAT and my FBSD
> >in on the private network on the inside.  What commands and/or ports
> >there that would provide the public IP address from the command line
> >I pass the IP to a script?  Any ideas?
> We have set up a server to return this since I got tired of
> poking around to find it.  This will return the IP address.
> ssh -l sshclient

Thanks.  I will either go this route or use a suggestion by another get
the html status page from the router and extract.  Is your server
normally up?


More information about the freebsd-questions mailing list