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.
To run crontab enter :
crontab -e
Then write the following code in it & save it. (Replace your mail id , password & hostname)
0 * * * * curl -u ‘xxx@gmail.com’:xxxxxxxx “http://dynupdate.no-ip.com/nic/update?hostname=xxxxxxxx.ddns.net”
Enjoy the surveillance publicly.