[GH-ISSUE #665] How you get captive portail and webserver runing at the same time ? #554

Open
opened 2026-02-28 01:25:50 +03:00 by kerem · 1 comment
Owner

Originally created by @spilz87 on GitHub (Jul 18, 2018).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/665

hello,

I really like your job, thanks for it !!!
I was looking at you code, but I don't understand how you solve the problem of running 2 webserver at the same time :

when I connect through AP, I access to a webpage of the captive portal
when I connect through my personnal network, I acces to the webpage of my project

I don't understand how you separate the webserver of the DNSserver from the webserver of the project.

I guess it something with the " std::unique_ptr server;" but I don't understand how that works.

I tryed to do a simple scketch with a captive portail with a specific page and a webserver that I can acces through my network with an other webpage

It will be very nice if you can help me to understand your work for that.
thanks
Spilz

Originally created by @spilz87 on GitHub (Jul 18, 2018). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/665 hello, I really like your job, thanks for it !!! I was looking at you code, but I don't understand how you solve the problem of running 2 webserver at the same time : when I connect through AP, I access to a webpage of the captive portal when I connect through my personnal network, I acces to the webpage of my project I don't understand how you separate the webserver of the DNSserver from the webserver of the project. I guess it something with the " std::unique_ptr<ESP8266WebServer> server;" but I don't understand how that works. I tryed to do a simple scketch with a captive portail with a specific page and a webserver that I can acces through my network with an other webpage It will be very nice if you can help me to understand your work for that. thanks Spilz
Author
Owner

@tablatronix commented on GitHub (Jul 18, 2018):

it is not solved, #461

Also you cannot run 2 webservers but maybe you can redirect different clients to different things.

<!-- gh-comment-id:406036005 --> @tablatronix commented on GitHub (Jul 18, 2018): it is not solved, #461 Also you cannot run 2 webservers but maybe you can redirect different clients to different things.
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#554
No description provided.