The camera is on DHCP. After restart the router gave it a new IP, but the NVR still looks at the old one. Give the camera a static IP (outside the DHCP range) or reserve the IP in the router.
๐ง Applies to: All brands of IP cameras and routers.
With DHCP the router rents out IPs. After a restart the lease is new and the IP may be new too. The NVR has the old address, so the camera shows "offline". A static IP is a permanent home.
After a router / power restart the camera comes Online at the same IP.
If it still changes, check that no other device takes the same IP (IP conflict).
What went wrong?
Still stuck? Ask the community.
This answer is for learning and field guidance. Menus and limits differ by brand / model: check the device's official manual before final work.