[solved] WebServer (dual AP/STA multi-home) demo code does not work?
Posted: Sun Oct 29, 2023 10:07 pm
Hello -- I am trying the demo code found here to create webservers that respond on the STA mode wifi connection, the soft AP, or both.
It seems to work fine: I can connect to the soft AP or my local network, and the terminal output does not show any errors.
When I connect via my local wifi network (i.e. "STA" mode or what the code calls the "WLAN" server) it works fine: :80 shows server0, and :8081 shows the WLAN server (server1).
But when I am connected to the soft AP, I cannot get any response from the webserver (server2) -- connections just time out.
I am using an ESP32-DevKitC-VIE v4 (which uses a ESP32-WROVER-IE module). Vscode + platformIO.
Any advice? Thanks!
Terminal output:
It seems to work fine: I can connect to the soft AP or my local network, and the terminal output does not show any errors.
When I connect via my local wifi network (i.e. "STA" mode or what the code calls the "WLAN" server) it works fine: :80 shows server0, and :8081 shows the WLAN server (server1).
But when I am connected to the soft AP, I cannot get any response from the webserver (server2) -- connections just time out.
I am using an ESP32-DevKitC-VIE v4 (which uses a ESP32-WROVER-IE module). Vscode + platformIO.
Any advice? Thanks!
Terminal output:
Code: Select all
Multi-homed Servers example starting
Connecting ..
Connected to "mynetwork", IP address: "192.168.3.143
Soft AP SSID: "ESP32", IP address: 192.168.4.1
MDNS responder started
HTTP server0 started
HTTP server1 started
HTTP server2 started
SSID: mynetwork
http://192.168.3.143:8080
http://192.168.3.143:8081
SSID: ESP32
http://192.168.4.1:8080
http://192.168.4.1:8081
Any of the above SSIDs
http://esp32.local:8080
http://esp32.local:8081