As soon as you need that your PC will be reachable with the public IP address, you can setup a free dns service in order to reach your machine with a unique hostname upon the changes of the IP address from the ADSL connection.
I'm reporting that http://freedns.afraid.org/ still offer the service for free (seems that the popular ones like No-IP or DynDNS don't provide their service for free anymore); here the steps to configure it automatically with inadyn, partially based on Ubuntu documentation https://help.ubuntu.com/community/DynamicDNS and https://help.ubuntu.com/community/DynamicDNS#inadyn
First of all register your account on Freedns:
http://freedns.afraid.org/menu/
Freedns offer a bunch of domain names, from my taste the best ones (or the ones easy to remember) are:
mooo.com
ignorelist.com
Assume that you register: <your_host>.ignorelist.com
Install inadyn:
Code:
sudo apt-get install inadyn curl
Open the url:
http://freedns.afraid.org/dynamic/
Login with your account
Select the link
Direct URL beside <your_host>.ignorelist.com
Copy everything from the right of the ? in the address bar (
alphanumeric string)
Create configuration file of inadyn:
Code:
sudo gedit /etc/inadyn.conf
And save this content:
Code:
--username <your_username>
--password <your_password>
--update_period 60000
--forced_update_period 320000
--alias <your_host>.ignorelist.com,alphanumeric string
--background
--dyndns_system default@freedns.afraid.org
--syslog
Add inadyn to crontab:
Code:
export EDITOR=gedit && sudo crontab -e
Edit the file to add the following line:
Code:
@reboot /usr/sbin/inadyn
Reboot your PC
Wait 3 minutes
Check if inadyn is running:
Code:
ps -A | grep inadyn
Check inadyn behaviour:
Code:
more /var/log/messages |grep INADYN
Check if your host is up:
Code:
ping <your_host>.ignorelist.com
Done!
Bookmarks