mirror of
https://github.com/tzapu/WiFiManager.git
synced 2026-04-27 00:55:52 +03:00
[GH-ISSUE #1579] Web Server doesn't starts after Wifi connected through WiFiManager #1348
Labels
No labels
📶 WiFi
🕸️ HTTP
Branch
DEV Help Wanted
Discussion
Documentation
ESP32
Example
Good First Issue
Hotfix
In Progress
Incomplete
Needs Feeback
Priority
QA
Question
Task
Upstream/Dependancy
bug
duplicate
enhancement
invalid
pull-request
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/WiFiManager#1348
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @patelabhi23 on GitHub (Mar 29, 2023).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/1579
I am using ESP32 Wroom DA module. When I connect to the WiFi Manager AP & then save new WiFi credentials then the Web Server doesn't starts. It gets the IP & Internet Connection but when I open WebServer HTTTP404 error. I am using AsyncWebServer instead of the WebServer.
Currently, if I do hard reset of the ESP then the WebServer starts working, but instead of Hard Reset on ESP I would like to do with the code itself.
@Bighoneypot commented on GitHub (Mar 29, 2023):
@patelabhi23 can you paste your full code and write your the result you expected?
@patelabhi23 commented on GitHub (Mar 29, 2023):
@Bighoneypot yes here is the code:
Once the Wifi is configured then it prints the IP address but when I open the webpage using that IP it shows that "This site can't be reached"
@tablatronix commented on GitHub (Mar 29, 2023):
There is a problem in esp with reopening a port for example opening another webserver even after one is closed. There is an issue we never figured it out
@patelabhi23 commented on GitHub (Mar 29, 2023):
@tablatronix
I am using the below attached ESP32 Board
Also I have tried doing the same in other ESP boards as if this ESP board might be damaged but it wasn't the case. In multiple ESP boards I have faced the same issue.
I have also gone through the #545 where you have resolved for the simple WebServer and not the AsyncWebServer.
@tablatronix commented on GitHub (Mar 29, 2023):
Yeah you cannot run 2 webservers even if you close one the port is not free have to reatart
@patelabhi23 commented on GitHub (Mar 29, 2023):
So you mean to say that wifimanager library doesn't supports two webservers?
@Bighoneypot commented on GitHub (Mar 29, 2023):
This is the problem, you can't run 2 webservers @patelabhi23
@patelabhi23 commented on GitHub (Mar 29, 2023):
@Bighoneypot I am closing the same port & again reopening it then too why it isn't working. Also you have the option of multiple ports in ESP32 & I am running multiple ports by saving the Wifi credentials in the code, but once I integrate wifimanager everything stops out
@tablatronix commented on GitHub (Mar 29, 2023):
Its an ESP BUG! ports are not released, run it on a different port I bet it works, or restart if the portal was started
@patelabhi23 commented on GitHub (Mar 29, 2023):
@tablatronix
@tablatronix commented on GitHub (Mar 31, 2023):
Its deep inside the wifiserver library, I am not very familiar with it but I never figured out or even got anywhere.
There might be a conflict between async and regular webserver libraries also , have you tried running both without wm?
I am working on the async branch to get it switchable
@patelabhi23 commented on GitHub (Mar 31, 2023):
Yes when I run without wm both of them works well but on integrating with wm it causes issue.
Also the esp.restart isn't working in that case so any alternatives for that?
@patelabhi23 commented on GitHub (May 1, 2023):
@tablatronix as per this were you able to make the async branch switchable?
@tablatronix commented on GitHub (May 1, 2023):
No but I will try to get some traction on it this week and try to get some releases out
@SVLoneStar commented on GitHub (May 8, 2023):
Any news on this?
Alternatively...is there a way to start WifiManager listening on a port other than 80? Thx!
@patelabhi23 commented on GitHub (May 10, 2023):
No not any yet as the asyncwebserver trys to reopen the same port but it isn't being able to do so.
@patelabhi23 commented on GitHub (May 10, 2023):
@tablatronix any updates?
@tablatronix commented on GitHub (May 11, 2023):
#1121
@kjyv commented on GitHub (May 29, 2023):
Why was this closed? The bug is still there and the linked ticket seems related, but is not a duplicate or superset of this one
@tablatronix commented on GitHub (May 29, 2023):
Because its a bug In ESP not wm, and i have no workaround for it
@khoint2101 commented on GitHub (Jun 12, 2023):
You can open custom port for WM lib. You can use to
WiFiManager wm; wm.setHttpPort(8080);This is open port 8080 for wifimanager web config, but when you login to wifi, you must type: 192.168.4.1:8080 to open web.
When using the other port, webserver will start after success config wifi. DON'T NEED Hard Reset :>