I was wondering if you can you have both Internal and External Web Server on the same Arduino?
I have an internal web server on my Arduino that is hosting a webpages with controls for digital inputs but I am needing to add it to an external web server so that the inputs can be done from the Internet.
Rather then discarding all the internal web server code I was hoping to just add coding for an external web server. Is that possible or will they just conflict?
If you want a single web server which runs in your internal network, but is accessible both from that internal network and from the internet, one way to achieve this is by configuring port forwarding on your router. All inbound internet traffic on port 80 is sent to your Arduino web server. This is, however, not trivial and is considered a security risk. You’d also have to handle any changes to your external IP address which your service provider may make.
which hardware and eventually firmware? Ethernet has 4 sockets, Ethernet2 has 8, esp8266 AT firmware can have only one server, esp8266 wifi library has 5 sockets
I was wondering if you can you have both Internal and External Web Server on the same Arduino?
No. The Arduino either is, or is not, a server. There is no such thing as internal server or external server. A server is either accessible from the internet, or it is not. Whether it is, or isn't, depends on whether the Arduino has a public or private IP address. NOTHING more than that.
PaulS:
No. The Arduino either is, or is not, a server. There is no such thing as internal server or external server. A server is either accessible from the internet, or it is not. Whether it is, or isn't, depends on whether the Arduino has a public or private IP address. NOTHING more than that.
you can run two servers on different ports. (except with esp8266 AT firmware)