LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-05-2009, 04:26 PM   #1
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Rep: Reputation: 18
How to get an ext ip from modem


Hello everyone.

I am running a server behind a dsl modem with dynamic IP. I would like to retrieve the external modem ip and save it on a file and then compare next time it retrieves it if its different from the previous one send me an email with the new IP address so I always know what is the IP address in case I need to access the server from a remote site. Does anyone has an idea on how this can be done? I guess some sort of script should do this but, don't have any idea on how to retrieve the Ip.

Thanks.
 
Old 01-05-2009, 04:29 PM   #2
{BBI}Nexus{BBI}
Senior Member
 
Registered: Jan 2005
Location: Nottingham, UK
Distribution: Mageia 5, Linux Lite
Posts: 4,312

Rep: Reputation: 209Reputation: 209Reputation: 209
There are various sites that will tell you your external ip i.e. http://whatismyip.com
 
Old 01-05-2009, 06:03 PM   #3
landysaccount
Member
 
Registered: Sep 2008
Location: Dominican Republic
Distribution: Debian
Posts: 188

Original Poster
Rep: Reputation: 18
How exactly can I retrieve the IP in php?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dialup OK on P3 with ext modem but fails at last step with various P4s - same modem pablo de wedgburg Linux - Newbie 1 09-24-2008 05:52 AM
Ext Modem driving me nuts! burroughs Linux - Hardware 6 03-20-2005 11:52 PM
ext modem hangs up dupuydl Linux - Networking 0 09-04-2004 07:03 AM
Configuring Ext. modem on Lindows 4.5 seprn Linux - Laptop and Netbook 0 06-19-2004 11:50 PM
USR 56k ext modem in RH9/Gnome - finds wrong modem . . . . emuub Linux - Networking 1 10-22-2003 02:01 PM


All times are GMT -5. The time now is 02:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration