Determining IP addr via script?

Michael Hipp mhipp
Mon May 17 11:34:35 PDT 2004


On Monday 08 July 2002 07:47 pm, Andrew Mathews wrote:
> Michael Hipp wrote:
> > I have a Linux box behind a LinkSys NAT router that gets a public
> > address from DSL on the WAN side. I'm wanting to be able from the Linux
> > box to determine what addr has been assigned by SWBell to the LinkSys
> > box.
> >
> > Thanks,
> > Michael
>
> <snip>
>
> Why not just have it send a blank message from cron and look at the
> header of the message to determine the source ip? If it's natted, the
> router will be the source ip.

You're suggesting sending an email message? Then scan the header info?

That ought to work. Only downside is that the email with the info I need 
will be outside somewhere.

Michael





More information about the Linux-users mailing list