 |
 |
Automated ip address email
|
 |
|
 |
|
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status:
Offline
|
|
I am going out of town and would like to log on to my home computer when I am away. The problem is that my ISP goes down and re-assigns ip addresses when it comes back up.
Would there be any way to automatically mail myself my ip address using a script?
Any ideas? Any scripts out there that do this?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Sep 2000
Location: New York
Status:
Offline
|
|
www.no-ip.org
Sign up and download their program and let it run on your home Mac. Its free. I use it.
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator Emeritus 
Join Date: Mar 2001
Location: Austin, MN, USA
Status:
Offline
|
|
Originally posted by barbarian:
I am going out of town and would like to log on to my home computer when I am away. The problem is that my ISP goes down and re-assigns ip addresses when it comes back up.
Would there be any way to automatically mail myself my ip address using a script?
Any ideas? Any scripts out there that do this?
A script to do exactly what you're asking.
But I prefer a dynamic DNS service as waffffffle suggested.
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Nov 2000
Location: Tasmania, Australia
Status:
Offline
|
|
Dynamic DNS is the best solution.
However, ANY email from your computer will contain it's IP address. Try it. Send yourself an email, then when you receive it, show all the headers (most of the transmission headers that contain the IP addresses of all machines that handled the email are hidden by default).
The one at the bottom of the list is the originating machine, ie, your computer.
|
|
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status:
Offline
|
|
Thanks for the info... very helpful.
Another question for another wrinkle.
What happens if my computers are behind the following:
dynamic ip--router--airport
if I get myaddress.no_ip.com
what would be the syntax to connect to a specific machine?
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 2000
Status:
Offline
|
|
Two little apps do this very easily.
DropIT - freeware
IP Reporter - shareware
They can email you the IP, post it to a web as an html file, etc.
|
|
"It's about time trees did something good insted of just standing there LIKE JERKS!" :)
|
| |
|
|
|
 |
|
 |
|
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status:
Offline
|
|
these are great for ip but don't solve the airport issue... any suggestions on this?
|
|
|
| |
|
|
|
 |
|
 |
|
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status:
Offline
|
|
Any client for a dynamic DNS service, e.g. http://dyndns.org , will have the option to report your 'external' IP address.
As for connecting to a specific machine inside your firewall, you need to set that up with your NAT router. For example:
1. Give your machines manual IP addresses within the NAT subnet.
2. In your Airport or router setup (whichever faces the outside Internet), "port map" the external port of interest to the internal IP address and port that you want.
If you want to reach two different internal web servers, you'll have to map two different external ports, e.g. port 80 and port 8080.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Jul 2000
Location: Texas
Status:
Offline
|
|
Originally posted by barbarian:
. The problem is that my ISP goes down and re-assigns ip addresses when it comes back up.
Your ISP goes down??? You write it like it happens daily :-)
|
|
---
One XP Box, One Suse Box, One Blue & White,
One ibook, One iMac 17 FP, one 30 gig iPod and a mini
happy .mac customer, os9 free since 3/24/01
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Oct 2000
Status:
Offline
|
|
Originally posted by barbarian:
these are great for ip but don't solve the airport issue... any suggestions on this?
IP reporter gives you the option of returning your WAN ip address. It logs onto one of the IP checking sites, gets the IP, and then posts it according to your specifications.
Drop IT doesn't do this.
|
|
"It's about time trees did something good insted of just standing there LIKE JERKS!" :)
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Mar 2003
Status:
Offline
|
|
You also need to make sure to forward the ports through your router to your local machine. If not, your request will hit the router and not get through to your computer.
Setting all of this up may seem a bit involved, but once you get everything set up (port forwarding, dynamic dns service, dns client, etc) it is very nice. I have been using DynDNS.org for 3 years and I love it. I can move my computer anywhere and still be able to access it.
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status:
Offline
|
|
I posted this in another thread but here goes again:
A simple script that queries whatismyip.com to get the IP address and then displays it in a dialog.
Code:
try
set the temp_folder to (path to temporary items folder) as string
set the target_file to (temp_folder & "GETIPTEMP.TXT")
tell application "URL Access Scripting"
download "http://whatismyip.com" to file target_file
end tell
set the HTML_source to read file target_file
set x to the offset of "<TITLE>" in the HTML_source
set y to the offset of "</TITLE>" in the HTML_source
set this_address to word 4 of (text (x + 7) thru (y - 1) of the HTML_source)
display dialog this_address buttons {"OK"} default button 1 giving up after 15
on error the error_message
display dialog error_message buttons {"OK"} default button 1
end try
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Dec 2002
Location: someplace
Status:
Offline
|
|
A bit simpler:
Code:
set the theIP to (do shell script "curl -s http://simple.showmyip.com") as string
set answer to "Your current IP address is " & theIP as string
display dialog answer buttons {"OK"} default button 1 giving up after 15
|
|
|
| |
|
|
|
 |
|
 |
|
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status:
Offline
|
|
Originally posted by gatorparrots:
A bit simpler:
Code:
set the theIP to (do shell script "curl -s http://simple.showmyip.com") as string
set answer to "Your current IP address is " & theIP as string
display dialog answer buttons {"OK"} default button 1 giving up after 15
Thanks!
Interestingly, simple.showmyip.com and whatismyip.com return different addresses!
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|