khoih-prog / EthernetWebServer

This is simple yet complete WebServer library for AVR, AVR Dx, Portenta_H7, Teensy, SAM DUE, SAMD21/SAMD51, nRF52, STM32, RP2040-based, etc. boards running Ethernet shields. The functions are similar and compatible to ESP8266/ESP32 WebServer libraries to make life much easier to port sketches from ESP8266/ESP32. Coexisting now with `ESP32 WebServer` and `ESP8266 ESP8266WebServer` libraries. Ethernet_Generic library is used as default for W5x00 with custom SPI
MIT License
178 stars 49 forks source link

Use the EthernetWebserver and ESP8266Webserver simultaneously #30

Closed JefersonDeLeon closed 3 years ago

JefersonDeLeon commented 3 years ago

I want to use wifi capability of the esp8266 and connect a Ethernet module(W5500) to have LAN.

I want to connect to different network but serve the same webserver.

So that when I access the ethernet IP and Wifi IP it will show the same webserver.

khoih-prog commented 3 years ago

Have a look at WiFi and Ethernet Bridge? #26.

But to use the high level EthernetWebServer and ESP32 WebServer is currently not ready, unless the library is modified to avoid conflicts. I don't think I'll spend time to modify the library as this use case is not popular.

stBasil commented 2 years ago

So what about combining Ethernet and WiFi webservers simultaneously? It would be cool

khoih-prog commented 2 years ago

If you'd like that solution, I suggest you use WT32-ETH01 (ESP32 + LAN8720) and ESP32 core provide the solution for WiFi + Ethernet to coexist.

Selection_067

Selection_068

Also look at

  1. WebServer_WT32_ETH01 Library
  2. AsyncWebServer_WT32_ETH01 Library

I'm sorry I won't spend time now to merge (Ethernet + WiFi) for all boards as the use case is rare and too complex for normal users. Hopefully in the future.

Thank for for suggestion anyway.