Here's a better (and more secure) way to do it: Create a VPN and connect to your home network through that when away from home.
Advantages: Secure (encrypted) communications between you and your home network. You get a local IP on your network when using the VPN...therefore, you can change the IP you're connecting to for your server to its LOCAL IP address.
So, basically, you now connect to the local server IP address whether you're at home or not. Nothing goes out to the Internet when at home: It all stays local.
In addition, you can use the VPN to tunnel the rest of your Internet activities when away from home. Congratulations: Secure media streaming, Internet browsing, Email, etc while using that Coffee shops notoriously insecure (but free) open WIFI!