[ start | index | login ]
start > 2009-10-01 > 1

2009-10-01 #1

Created by admin. Last edited by admin, 161 days ago. Viewed 180 times. #1
[edit] [rdf]
labels
attachments

what is my ip

I've been trying to figure out a way to be able to setup access to my folks' linux box remotely for a while now. They've been happily using it for a few years now and apart from the rare windows office incompatibility, they really haven't run into any big issues.

They don't have a static IP ( like pretty much everyone else on a non business plan these days) so I looked into Dynamic DNS as an option but couldn't get it going quite right. It needs to be setup on the Verizon router which supposedly has options to set it up but it never really worked.

Being the lazy programmer that I am I started thinking about how I could re-purpose what's already available for my needs. A simple, brain dead solution I came up with is to run a script via cron ( say on the hour) which figures out what their computer's public facing IP is and then scp it over to my box:

IP=`curl >>http://whatismyip.com/automation/n09230945.asp`
echo $IP > ip.txt
scp -P 22000 ip.txt nimret@nimret.org:~/some/folder/dadsip.txt

It could probably be improved upon by not sending anything if the IP hasn't actually changed or streaming the data instead of copying the file but this seems to work great for now! =)

Please login to post a comment.

Main Menu

  1. Daily Stuff
  2. Hacking
  3. Fun Stuff
  4. Contact Me
  5. >>Nimsoft.biz
  6. >>Seattle Traffic on your cell
March 2010
SunMonTueWedThuFriSat
123456
78910111213
14151617181920
21222324252627
28293031

>>PopURLS

XHTML 1.0 validated
CSS validated
RSS 2.0 validated
RSS Feed

Powered by SnipSnap 1.0b2-uttoxeter

Describe here what your SnipSnap is about!

Configure this box!

  1. Login in
  2. Click here: snipsnap-portlet-2
  3. Edit this box
snipsnap.org | Copyright 2000-2002 Matthias L. Jugel and Stephan J. Schmidt