getting IP address of router

jim ruxton cinetron-uEvt2TsIf2EsA/PxXw9srA at public.gmane.org
Mon Feb 7 22:08:13 UTC 2005


On Mon, 2005-02-07 at 11:29, Jason Shein wrote:
> On February 7, 2005 09:02 pm, jim ruxton wrote:
> > Thanks again Adam. I didn't have Lynx, guess it doesn't come with
> > Fedora. I installed it and this works, thanks. What I'd like to easily
> > be able to do is grab my internet IP address and pass it on to a script.
> > I guess I could parse what comes back from myip.dk but I keep thinking
> > there must be an easier way.
> > Jim
> http://www.whatismyip.com/
> 
> or some php I came across a while ago that is said to do just this. I can't 
> remember where I found it though...
> 
> <?
> $domain = GetHostByName($REMOTE_ADDR);
> print $domain;
> ?>
In this case what is the variable $REMOTE_ADDR ?

Jim


--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list