Fwd: Re:finding my own ip

Jamon Camisso jamon.camisso-H217xnMUJC0sA/PxXw9srA at public.gmane.org
Fri Dec 28 00:32:35 UTC 2007


Sending again, disregard the noise if you've already received this: 

----------  Forwarded Message  ----------

Subject: Re: [TLUG]: finding my own ip
Date: December 27, 2007
From: Jamon Camisso <jamon.camisso-H217xnMUJC0sA/PxXw9srA at public.gmane.org>
To: tlug-lxSQFCZeNF4 at public.gmane.org

On December 27, 2007 10:52:05 Peter Smerdon wrote:
> Hello Everyone and seasons greetings..
>
> My job takes me on the road a lot, but I like to keep my server
> running so I can ssh into it from anywhere I happen to be. This way
> my email and newsgroups for example are all in one location.
>
> The problem is my IP address is dynamic and dsl, every few days it
> changes. My isp (magma.ca) used to provide a webpage that I could see
> what my current IP is but now that Primus bought them, this page has
> gone and I have no way of knowing what my IP at home is.
>
> My solution was to set a cron job to use curl and the website
> `whatismyip.com' to email the IP address to my throwaway yahoo.ca
> address.
>
> ,----[ crontab ]
>
> | */60 * * * * /usr/bin/curl
> |  http://www.whatismyip.com/automation/n09230945.asp >>
> |  /home/peter/cronlog 2>&1 | mail -s my-ip petersmerdon-FFYn/CNdgSA at public.gmane.org
>
> `----
>
> This seems to work, once an hour I get an email in my yahoo inbox
> containing my IP but I am wondering if there is a `proper' way to do
> this? It just seems like a bit of a kludge to rely on an outside
> website. I use a netgear wireless router at home which I cannot ssh
> into directly, and ifconfig only shows ip's from my internal network
> so I wasn't sure how else to find my internet address without using
> an external service like that website.
>
> thoughts?

On Fedora and Debian, check out the ez-ipupdate tool, it works with 10+ 
dynamic dns providers. With that you just ssh to you.dnsprovider.com I 
have the equivalent setup to run on my router's firmware and it is the 
easiest and most convenient way to keep up to date with your ip.

You could setup curl to login to and scrape the IP from the netgear 
interface too, but having a subdomain is easier to remember and you 
don't have to check your email first.

There is also an External IP plugin for Firefox, but it just uses one of 
those 10+ external websites ez-ipupdate uses anyways.

Jamon

-------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
URL: <http://gtalug.org/pipermail/legacy/attachments/20071227/4b239275/attachment.sig>


More information about the Legacy mailing list