View Single Post

   
  #8 (permalink)  
Old 02-19-2008, 07:18 AM
George Georgakis
 
Posts: n/a
Default Re: Completely O.T. but perhaps interesting Q.

Moss Hart <act1@operamail.com> wrote:

> Thanks, but I think I was unclear. And, no doubt, my setup is
> convoluted. (This may be no better!)
>
> The "lost in space" box doesn't actually have an routable address It's
> behind a cable router which is picking up the dynamic ip from the isp.
> Thus the workaround of having it wget the external page. That external
> php page consists solely of a command that echo's the ip of the
> requesting box -- which in this case is ACTUALLY the ip of the cable
> modem which is doing NAT). Lost in space box then writes that page
> (which is just the address) to /tmp/address and accesses that file for
> its dynamic update.
>
> Pause for deep breath. ;-)
>
> So if I understood YOU correctly ifconfig on the "lost in space" box
> doesn't get me that address I need. (But the solution looked way cool!).


Well, that's a little clearer, and no, my suggestion won't help.

Why not add an extra line to the PHP page that _also_ emails the
IP to your email address as soon as the LIS box hits? You can always
pipe the IP variable to the "mail" command (as per my first suggestion).

--
George Georgakis-geeg AT tripleg net au-http://www.tripleg.net.au/
SlackBuild Central - http://slackpack.tripleg.net.au/
Reply With Quote