If you install a surveillance camera on your Raspberry Pi and want to monitor publicly ,r simply use No-IP to overcome the fact that you don’t have a static public IP address. When dynamic ip changes, noip hostname disconnected.
Just a crontab solve your problem.