Sorry for the delayed reply. Travelling this week.
You should not need to change the IP addresss 0.0.0.0. That just lets it accept on any network connect. If you had multiple, you could specift which address it should listen on. Port doesn't matter - you should be able to set any non-conflicting port for it to listen on (the 8080 in my code snippet). Obviosuly, you'd change the URLs to the same port.
Set up port forwarding on your router for that port so an external call to your (external) IP address would go to your pi.
Most ISPs don't actually change your IP address very often - my usually lasts for months without change. But if it's a problem look into a dynamic dns service so you could call by address instead of IP.