Tutorial 10: Email Yourself your IP Address
You have your Raspberry Pi web server online and now it is secured. Now how do you find it?
Most websites you visit have a static IP address - that is: an IP address that does not change. So when you type in "google.com" you are actually visiting "126.96.36.199", the address of google.com. Static IP addresses are not offered by default by ISPs; instead they assign you a changing or dynamic IP address so you can navigate online. This dynamic IP address of yours may last a week, a day, or even just an hour. This makes it difficult to visit the server you're trying to host on your Pi!
In this tutorial I show you how to write a Python script that automatically checks your IP address and then sends the IP address to a gmail email account. Why? Well, regardless of where you are you will be able to access your email. If you have the current dynamic home IP address you will be able to access your server! A simple work around that won't cost you anything.
This tutorial is a little older (published in 2015!). The main principles are still relevant, so I haven't needed to update this lesson.