I have a Raspberry Pi 4 that allows me to VPN into my home network. I used PiVPN to setup the Pi as an OpenVPN server and create clients. I managed to setup a PC with the config file I got from the Pi and I can remote into the network. However, I cannot get access to the cameras when I type the IP address assigned to the NVR. When I connect back to my home network, I'm able to see the NVR again, but never when I'm connected to an outside network (cell phone hotspot) and using a VPN. My public IP matches the home network, so I know it's working and I'm able to access my router's settings page from the VPN connection. On my NVR, I have DHCP enabled and it picks up the information automatically (ip address, gateway, dns). My assigned IP address on VPN is 10.8.0.2, which is completely different from the devices IP on my home network (192.1.168.x). I thought maybe that was related to the issue, but I'm not really sure about this.
What is the issue? How can I fix this? Setting up the VPN took me 10 minutes and troubleshooting how to view my cameras has taken way longer.
This question is different from my other OpenVPN question. That issue involved OpenVPN not working over Ethernet when I installed PiVPN over WiFi. I reinstalled PiVPN using my Ethernet connection and it works now. The problem I’m dealing with is not being able to view my cameras even though I can get connected to my VPN and use the internet.