Okay, this is a networking question….and I am quite the noob
So I have a Raspberry Pi setup running octoprint that I can access from any computer (not just local). All that works great. I am using a no-ip DDNS address to access it.
To do this, I used DDNS and Port Forwarding (Port 80) in my router settings.
My question is….I want to also be able to do something similar (simultaneously) with an ESP32 that is configured as a web server, also connected to my home network.
The RasPi is 192.168.1.20 and the ESP32 is 192.168.1.21
Since I have 192.168.1.20 forwarded, the DDNS points to the RasPi……
What do I need to do to access my ESP32 (192.168.1.21) from outside the home network?
Thanks…..Hope this makes some sense.
You must assign 2 distinct ports on the WAN address of your router: 1 port that will redirect HTTP requests to port 80 of your RasPi and another port that will redirect HTTP requests to port 80 of your ESP32. For example :
http://myrouter.ddns.net[:80]/[path] --> 192.168.1.20:80 (RasPi) http://myrouter.ddns.net:8080/[path] --> 192.168.1.21:80 (ESP32)