Set specific hours for motion detection or streaming to be active.
Use a free Dynamic DNS (DDNS) service like No-IP or DuckDNS. Yawcam has built-in DDNS support. This gives you a permanent address like mycam.ddns.net:8081 . yawcam ip camera free
Yawcam: The Ultimate Guide to Free IP Camera and Surveillance Software Set specific hours for motion detection or streaming