Portforwarding multiple ESP8266?

Hello Everyone,

I'm currently hosting a web server displaying various sensor data on a ESP8266 that's connected to my WiFi. I portforwaredt the webserver on my router on Port 80 and used https://freedns.afraid.org/ to get a free URL.

Now i want to make the same with a second ESP thats hosting a webserver on the same network. How do i portforward the second ESP to then also be able to use the service of https://freedns.afraid.org/? Can i just use another port?

I think you can't, dynamic DNS has nothing to do with ports.
Given your router can't handle routing rules based on the http URL called (usually home routers can't), if you need to reach the second ESP the calling client should just use another port and setting that specific port forwarding .
Assuming your current 3rd level domain is like "mysensor.afraid.org" and the chosen external port is 81, to access the second ESP the URL is "http://mysensor.afraid.org:81": that way your router port forwarding is pointing from external port 81 to internal port 80 and the second ESP IP address, thus letting it to connect.
Give it a try.
HTH

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.