Hope everyone is doing well.
This is probably one of those newbie questions so please bear with me.
I have an index.php webpage hosted by Apache server (Virtual Host port 80). I'm able to access it via web browser by typing in the local IP of the machine the server is installed on. I have another webpage which has a camera stream. This camera stream was configured to be running on a different port (5005). Both webpages are saved in the same /var/www/ directory.
The camera stream is embedded on the index.php website. This arrangement works well locally, I can see the stream just fine when I type in my local IP address into the browser.
Now, it'd great to have the index.php webpage accessible over the internet. I decided to go with the router port forwarding technique but now I'm facing a problem. Will the camera stream embedded on the index.php webpage still be visible if I only forward ports 80 and 443 on my router? Will the server still be able to see it as it was able to in a local environment?
Would be great if you guys could help me out here.
Kind regards Rob
The web server will see the camera stream the same way as when you make requests locally. But whether your setup will work depends on if the web browser needs to connect to the camera stream directly (on port 5005). If it does, you will need to forward also the port 5005, or make the stream available through the web server in some way so that the browser only needs to use port 80 or 443.