Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > Automated ip address email

Automated ip address email
Thread Tools
Senior User
Join Date: Apr 2001
Location: Palo Alto, CA
Status: Offline
Reply With Quote
Jul 21, 2003, 03:10 PM
 
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
Reply With Quote
Jul 21, 2003, 03:16 PM
 
www.no-ip.org

Sign up and download their program and let it run on your home Mac. Its free. I use it.
     
Xeo
Moderator Emeritus
Join Date: Mar 2001
Location: Austin, MN, USA
Status: Offline
Reply With Quote
Jul 21, 2003, 03:22 PM
 
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
Reply With Quote
Jul 21, 2003, 05:37 PM
 
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
Reply With Quote
Jul 21, 2003, 07:48 PM
 
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
Reply With Quote
Jul 21, 2003, 07:50 PM
 
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
Reply With Quote
Jul 21, 2003, 08:21 PM
 
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
Reply With Quote
Jul 22, 2003, 01:04 PM
 
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
Reply With Quote
Jul 22, 2003, 01:12 PM
 
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
Reply With Quote
Jul 22, 2003, 01:49 PM
 
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
Reply With Quote
Jul 22, 2003, 04:49 PM
 
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.
     
Sal
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status: Offline
Reply With Quote
Jul 22, 2003, 11:08 PM
 
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
Reply With Quote
Jul 23, 2003, 04:55 PM
 
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
     
Sal
Dedicated MacNNer
Join Date: Sep 2000
Location: Cupertino, CA USA
Status: Offline
Reply With Quote
Jul 24, 2003, 03:06 AM
 
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!
     
   
Thread Tools
Forum Links
Forum 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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 08:20 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2