Porto
Posts: 1
Joined: Mon Mar 24, 2014 12:00 am

SSH rpi remotly, dynamic ip

Mon Mar 24, 2014 12:07 am

Hello guys,

its my first post on the forums yet Ive been a rpi user for quiet a while now :).
Sooo, I would like to be able to access my rpi remotly when out of home but the problem is that my home connection is dynamic ip based (adsl). Beside of rpi Ive got a vps with full root access so Ive been thinking about using vps to make my dynamic ip a little bit more static ;). Could someone please point me the right direction ? :)

Cheers

Tarcas
Posts: 741
Joined: Thu Jan 09, 2014 5:38 am
Location: USA

Re: SSH rpi remotly, dynamic ip

Mon Mar 24, 2014 3:19 am

Do a google search for "dynamic DNS." There are several options out there, and they all do basically the same thing. You claim a (usually free) subdomain that you or a script update when your home IP changes. It takes a while for the update to propagate through the DNS system so if your IP changes too often and you need immediate access, you can do what I did a few years ago...
Run a script to poll whatismyip.com and compare it to the last known IP, stored in a file. If it's different, have the script send it to your E-mail address. Simple and crude, but very effective.

alternatif
Posts: 1
Joined: Mon Mar 24, 2014 2:06 pm

Re: SSH rpi remotly, dynamic ip

Mon Mar 24, 2014 2:09 pm

if you are looking for a free solution; you can request a domain from freedns: https://freedns.afraid.org/, and run this script http://inatech.eu/inadyn/ in the background to keep your dynamic ip and domain synced.

Return to “Advanced users”