[GH-ISSUE #403] WIFI_AP_STA mode after connecting #338

Closed
opened 2026-02-28 01:24:50 +03:00 by kerem · 4 comments
Owner

Originally created by @Dzavid on GitHub (Aug 29, 2017).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/403

Is it possible to switch ESP to dual mode (Access point and Station) after it's been successfully connected to WiFi network with DNS still working? I need this because my device will be given to the people who are not familiar with coding so I want them to be able to connect to ESP and go to config portal anytime, even if ESP is already connected.

I guess I need to modify .cpp file and conditions in it, but it seems like DNS stops working after it switches to dual mode.

Originally created by @Dzavid on GitHub (Aug 29, 2017). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/403 Is it possible to switch ESP to dual mode (Access point and Station) after it's been successfully connected to WiFi network with DNS still working? I need this because my device will be given to the people who are not familiar with coding so I want them to be able to connect to ESP and go to config portal anytime, even if ESP is already connected. I guess I need to modify .cpp file and conditions in it, but it seems like DNS stops working after it switches to dual mode.
kerem closed this issue 2026-02-28 01:24:50 +03:00
Author
Owner

@tablatronix commented on GitHub (Aug 29, 2017):

What do you mean by dns?

<!-- gh-comment-id:325821794 --> @tablatronix commented on GitHub (Aug 29, 2017): What do you mean by dns?
Author
Owner

@Dzavid commented on GitHub (Aug 29, 2017):

@tablatronix

I'm sorry. I made a mistake. What I meant is that when I connect to ESP after it is connected to my WiFi, I can't reach configuration portal of WiFiManager. It seems like captive portal doesn't work anymore. It doesn't redirect me nor I can access it directly from IP (192.168.4.1).

<!-- gh-comment-id:325822647 --> @Dzavid commented on GitHub (Aug 29, 2017): @tablatronix I'm sorry. I made a mistake. What I meant is that when I connect to ESP after it is connected to my WiFi, I can't reach configuration portal of WiFiManager. It seems like captive portal doesn't work anymore. It doesn't redirect me nor I can access it directly from IP (192.168.4.1).
Author
Owner

@tablatronix commented on GitHub (Aug 29, 2017):

Hmm well the captive portal only really works on the softap, and itt shuts down after you save.
Do you want it to stay on, via the softap, or do you want to get to it through the network, which would be harder.

<!-- gh-comment-id:325837097 --> @tablatronix commented on GitHub (Aug 29, 2017): Hmm well the captive portal only really works on the softap, and itt shuts down after you save. Do you want it to stay on, via the softap, or do you want to get to it through the network, which would be harder.
Author
Owner

@papartmike commented on GitHub (Sep 11, 2017):

I think I need something similar... I'd rather access the configuration portal also when connected as a client. What i'm doing so far is to create a web page as a web server that allows me to call the ondemand config portal (softAP). The only problem is that I need to have a web server on a different port (not 80) since probably something is going in a conflictuos state and config portal is not shown. Basically it should show the web server page also when connected as a client. Thanks

<!-- gh-comment-id:328500935 --> @papartmike commented on GitHub (Sep 11, 2017): I think I need something similar... I'd rather access the configuration portal also when connected as a client. What i'm doing so far is to create a web page as a web server that allows me to call the ondemand config portal (softAP). The only problem is that I need to have a web server on a different port (not 80) since probably something is going in a conflictuos state and config portal is not shown. Basically it should show the web server page also when connected as a client. Thanks
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/WiFiManager#338
No description provided.