getting IP address of router

jim ruxton cinetron-uEvt2TsIf2EsA/PxXw9srA at public.gmane.org
Thu Feb 10 01:51:54 UTC 2005


Thanks David,
I'll have a look at it.
Jim
> Hey,
> 
>  I wrote a bit of Perl years ago that opens a socket, posts an http
> request and then captures the raw response. This bit of code perhaps might
> give you maximum flexibility. I have attached it. It currently calls an
> old ip address reflector of mine...
> 
> =========================================================
> | David Mayerlen
> | Upstart Associates
> | http://www.upstartx.com
> | dmz-yBkl/NpmZwtWk0Htik3J/w at public.gmane.org
> | 416-424-6739
> =========================================================
> 
> On Wed, 9 Feb 2005, Lennart Sorensen wrote:
> 
> > On Wed, Feb 09, 2005 at 02:50:45PM -0500, jim ruxton wrote:
> > > Hi Lennart,
> > > I'll have to see if I can find dog. Doesn't seem to be in the Fedora 1
> > > apt repository. I tried replacing dog with curl in your script but I
> > > guess it's not so easy. Here's what I got..
> >
> > curl certainly behaves differently, but probably could be made to work
> > given the right options.
> >
> > Some other methods that behave like dog http://www.myip.dk
> >
> > wget -q -O - http://www.myip.dk
> > curl -s -o - http://www.myip.dk
> > lynx -source http://www.myip.dk
> >
> > etc...
> >
> > Lennart Sorensen
> > --
> > 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
> >

--
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