Reply to Re: Finding out IP Address behind NAT

Your name:

Reply:


Posted by C. (http://symcbean.blogspot.com/) on 10/01/24 12:00

On 16 Jan, 11:17, The Natural Philosopher <a...@b.c> wrote:
> KDawg44 wrote:
> > Hi,
>
> > I am writing a PHP app for a small business (family member owes me
> > after this...) but they need to get their box back before I am
> > finished. They have a DSL with dynamic ip and I need to be able to
> > SSH in to their box, so I need to write a script that i have run as a
> > cron job that will email me the current public IP of their DSL modem
> > (as it will change). I am not sure the best way to go about this....
> > I was hoping someone could give me a suggestion of a PHP script....
>
> > Thanks for any help.
>
> You say cron job - that implies *nix.
>
> Why not write it in shell, and just add a line saying 'mail'
>
> Getting the IP address is trickier: need to interrogate their NAT router.
>
> Thats probably going to be a telnet script or SNMP.
>
> I THINK ther are snmp tools for Linux..
>
> None of this has to do with PHP

If it is a Unix script - then you'll find that most DHCP clients allow
you to hang a script off lease renewals - which is a far batter way of
doing it than using cron (but this is getting way OT) Try asking on a
newsgroup related to your OS for specifics.

C.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация