# Can you have both Internal and External Web Server?

**URL:** <https://forum.arduino.cc/t/can-you-have-both-internal-and-external-web-server/522601>\
**Category:** Programming\
**Created:** [April 26, 2018, 2:26am UTC](https://forum.arduino.cc/t/can-you-have-both-internal-and-external-web-server/522601 "2018-04-26T02:26:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![SamD123](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@SamD123](https://forum.arduino.cc/u/SamD123)\
**Post date:** [April 26, 2018, 2:26am UTC](https://forum.arduino.cc/t/can-you-have-both-internal-and-external-web-server/522601/1 "2018-04-26T02:26:47Z")

</div>

Hello!

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?

---

<div class="post-metadata">

**Author:** ![6v6gt](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/6v6gt/32/225488_2.png) [@6v6gt](https://forum.arduino.cc/u/6v6gt)\
**Post date:** [April 26, 2018, 5:47am UTC](https://forum.arduino.cc/t/can-you-have-both-internal-and-external-web-server/522601/2 "2018-04-26T05:47:56Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Juraj](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/juraj/32/238785_2.png) [@Juraj](https://forum.arduino.cc/u/Juraj)\
**Post date:** [April 26, 2018, 6:59am UTC](https://forum.arduino.cc/t/can-you-have-both-internal-and-external-web-server/522601/3 "2018-04-26T06:59:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [April 26, 2018, 8:56am UTC](https://forum.arduino.cc/t/can-you-have-both-internal-and-external-web-server/522601/4 "2018-04-26T08:56:59Z")

</div>

> 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.

---

<div class="post-metadata">

**Author:** ![Juraj](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/juraj/32/238785_2.png) [@Juraj](https://forum.arduino.cc/u/Juraj)\
**Post date:** [April 26, 2018, 8:59am UTC](https://forum.arduino.cc/t/can-you-have-both-internal-and-external-web-server/522601/5 "2018-04-26T08:59:39Z")

</div>

> 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)

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/arduino/user_avatar/forum.arduino.cc/system/32/1140315_2.png) [@system](https://forum.arduino.cc/u/system)\
**Post date:** [May 5, 2021, 11:09pm UTC](https://forum.arduino.cc/t/can-you-have-both-internal-and-external-web-server/522601/6 "2021-05-05T23:09:22Z")

</div>

Closed on May 5, 2021, 11:09pm UTC


