You are here: Re: Finding out IP Address behind NAT « PHP Programming Language « IT news, forums, messages
Re: Finding out IP Address behind NAT

Posted by Daniel Ennis on 10/05/53 12:00

Jerry Stuckle 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.
>>
>>
>
> Don't make it hard on yourself. Check out one of the free dynamic IP
> name servers such as dyndns.org.
>
> BTW, there's a good possibility you won't be able to SSH to their box,
> but that's not a PHP problem.
>

If you do want to do it as cronjob as you said, you could do http
request on many of the free online ip address displayer's and parse the
IP out of it.

--
Daniel Ennis
faNetworks.net - Quality Web Hosting and Ventrilo Services
System Administrator / Web Developer
PHP Developer for 6 years
daniel@fanetworks.net

 

Navigation:

[Reply to this 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

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