getting IP address of router

David Mayerlen dmz-yBkl/NpmZwtWk0Htik3J/w at public.gmane.org
Wed Feb 9 20:04:52 UTC 2005


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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: getpage.pl.gz
Type: application/octet-stream
Size: 1654 bytes
Desc: 
URL: <http://gtalug.org/pipermail/legacy/attachments/20050209/b5ae04e1/attachment.obj>


More information about the Legacy mailing list