[GH-ISSUE #836] How do you redirect outside the captives with a link? What I’m trying to do is after the Wi-Fi manager connects to the network instead of closing the setting page I wanted to open up a web browser to the IP address of the device that… #702

Open
opened 2026-02-28 01:26:40 +03:00 by kerem · 10 comments
Owner

Originally created by @athleticmistud on GitHub (Feb 26, 2019).
Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/836

PLEASE TRY DEVELOPMENT BRANCH before submitting bugs on release or master, in case they were already fixed.

POST SERIAL OUTPUT !

Issues without basic info will be ignored or closed!

Please fill the info fields, it helps to get you faster support ;)

if you have a stack dump decode it:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst

for better debug messages:
https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst

----------------------------- Remove above -----------------------------

Basic Infos

Hardware

WiFimanager Branch/Release:

  • Master
  • Development

Esp8266/Esp32:

  • ESP8266
  • ESP32

Hardware: ESP-12e, esp01, esp25

  • ESP01
  • ESP12 E/F/S (nodemcu, wemos, feather)
  • Other

ESP Core Version: 2.4.0, staging

  • 2.3.0
  • 2.4.0
  • staging (master/dev)

Description

Problem description

Settings in IDE

Module: NodeMcu, Wemos D1

Additional libraries:

Sketch


#include <Arduino.h>

void setup() {

}

void loop() {

}

Debug Messages

messages here
Originally created by @athleticmistud on GitHub (Feb 26, 2019). Original GitHub issue: https://github.com/tzapu/WiFiManager/issues/836 ## PLEASE TRY DEVELOPMENT BRANCH before submitting bugs on release or master, in case they were already fixed. ## ## POST SERIAL OUTPUT ! Issues without basic info will be ignored or closed! Please fill the info fields, it helps to get you faster support ;) if you have a stack dump decode it: https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/stack_dump.rst for better debug messages: https://github.com/esp8266/Arduino/blob/master/doc/Troubleshooting/debugging.rst ----------------------------- Remove above ----------------------------- ### Basic Infos #### Hardware **WiFimanager Branch/Release:** - [ ] Master - [ ] Development **Esp8266/Esp32:** - [ ] ESP8266 - [ ] ESP32 **Hardware: ESP-12e, esp01, esp25** - [ ] ESP01 - [ ] ESP12 E/F/S (nodemcu, wemos, feather) - [ ] Other **ESP Core Version: 2.4.0, staging** - [ ] 2.3.0 - [ ] 2.4.0 - [ ] staging (master/dev) ### Description Problem description ### Settings in IDE Module: NodeMcu, Wemos D1 Additional libraries: ### Sketch ```cpp #include <Arduino.h> void setup() { } void loop() { } ``` ### Debug Messages ``` messages here ```
Author
Owner

@tablatronix commented on GitHub (Feb 26, 2019):

Use mdns hostname.local

<!-- gh-comment-id:467473119 --> @tablatronix commented on GitHub (Feb 26, 2019): Use mdns hostname.local
Author
Owner

@athleticmistud commented on GitHub (Feb 27, 2019):

cant use the .local need to use the ip address that gets assigned to the
board by the router. how do you get out of the captive and auto launch a
browser with the ip??

On Tue, Feb 26, 2019 at 7:04 AM Shawn A notifications@github.com wrote:

Use mdns hostname.local


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tzapu/WiFiManager/issues/836#issuecomment-467473119,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ap-fp12kwys3sf0_ofVbe9nb6JT-Tnirks5vRU0WgaJpZM4bRkQh
.

<!-- gh-comment-id:467973088 --> @athleticmistud commented on GitHub (Feb 27, 2019): cant use the .local need to use the ip address that gets assigned to the board by the router. how do you get out of the captive and auto launch a browser with the ip?? On Tue, Feb 26, 2019 at 7:04 AM Shawn A <notifications@github.com> wrote: > Use mdns hostname.local > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/tzapu/WiFiManager/issues/836#issuecomment-467473119>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/Ap-fp12kwys3sf0_ofVbe9nb6JT-Tnirks5vRU0WgaJpZM4bRkQh> > . >
Author
Owner

@tablatronix commented on GitHub (Feb 27, 2019):

you cannot click links in a captive portal.. so I have no idea what you mean.

<!-- gh-comment-id:468008398 --> @tablatronix commented on GitHub (Feb 27, 2019): you cannot click links in a captive portal.. so I have no idea what you mean.
Author
Owner

@athleticmistud commented on GitHub (Feb 27, 2019):

I'm trying to figure out a way to force out captive portal of iOS and open
safari instead, after I save my WiFi settings. I've managed to alter the
standard lib a little so it gets the IP of the AP and server.send before
closing the STA. Problem is, if captive portal does not detect a success
response from internet it does not allow me to open a link or move
automatically to Safari browser.

the idea behind this is to get automatically redirected to the boards IP
address after the AP connects

On Wed, Feb 27, 2019 at 12:00 PM Shawn A notifications@github.com wrote:

you cannot click links in a captive portal.. so I have no idea what you
mean.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tzapu/WiFiManager/issues/836#issuecomment-468008398,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ap-fp5DGM0jzVCG13METwEFpi3Bbhzymks5vRuPTgaJpZM4bRkQh
.

<!-- gh-comment-id:468071235 --> @athleticmistud commented on GitHub (Feb 27, 2019): I'm trying to figure out a way to force out captive portal of iOS and open safari instead, after I save my WiFi settings. I've managed to alter the standard lib a little so it gets the IP of the AP and server.send before closing the STA. Problem is, if captive portal does not detect a success response from internet it does not allow me to open a link or move automatically to Safari browser. the idea behind this is to get automatically redirected to the boards IP address after the AP connects On Wed, Feb 27, 2019 at 12:00 PM Shawn A <notifications@github.com> wrote: > you cannot click links in a captive portal.. so I have no idea what you > mean. > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/tzapu/WiFiManager/issues/836#issuecomment-468008398>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/Ap-fp5DGM0jzVCG13METwEFpi3Bbhzymks5vRuPTgaJpZM4bRkQh> > . >
Author
Owner

@tablatronix commented on GitHub (Feb 28, 2019):

Afaik the captive portal is sandboxed, you cannot do anything but open local pages in captive window

<!-- gh-comment-id:468103062 --> @tablatronix commented on GitHub (Feb 28, 2019): Afaik the captive portal is sandboxed, you cannot do anything but open local pages in captive window
Author
Owner

@athleticmistud commented on GitHub (Feb 28, 2019):

ok so how can i do the connection with the wifimanager, then i have a
confirmation page that shows the ip address for them is there a way to then
open a browser from there? i can long press and it opens the window is
there a way to do that automatically?

the .local is not reliable enough so i need to use the ip to acces the
board. how else could i do this ?

On Wed, Feb 27, 2019 at 5:47 PM Shawn A notifications@github.com wrote:

Afaik the captive portal is sandboxed, you cannot do anything but open
local pages in captive window


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tzapu/WiFiManager/issues/836#issuecomment-468103062,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ap-fp3u-2fXxyiWuMOX3YZsl_6lUhrYLks5vRzUbgaJpZM4bRkQh
.

<!-- gh-comment-id:468115470 --> @athleticmistud commented on GitHub (Feb 28, 2019): ok so how can i do the connection with the wifimanager, then i have a confirmation page that shows the ip address for them is there a way to then open a browser from there? i can long press and it opens the window is there a way to do that automatically? the .local is not reliable enough so i need to use the ip to acces the board. how else could i do this ? On Wed, Feb 27, 2019 at 5:47 PM Shawn A <notifications@github.com> wrote: > Afaik the captive portal is sandboxed, you cannot do anything but open > local pages in captive window > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/tzapu/WiFiManager/issues/836#issuecomment-468103062>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/Ap-fp3u-2fXxyiWuMOX3YZsl_6lUhrYLks5vRzUbgaJpZM4bRkQh> > . >
Author
Owner

@athleticmistud commented on GitHub (Feb 28, 2019):

what is Afaik?

On Wed, Feb 27, 2019 at 6:47 PM Out and About athleticmistud@gmail.com
wrote:

ok so how can i do the connection with the wifimanager, then i have a
confirmation page that shows the ip address for them is there a way to then
open a browser from there? i can long press and it opens the window is
there a way to do that automatically?

the .local is not reliable enough so i need to use the ip to acces the
board. how else could i do this ?

On Wed, Feb 27, 2019 at 5:47 PM Shawn A notifications@github.com wrote:

Afaik the captive portal is sandboxed, you cannot do anything but open
local pages in captive window


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/tzapu/WiFiManager/issues/836#issuecomment-468103062,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ap-fp3u-2fXxyiWuMOX3YZsl_6lUhrYLks5vRzUbgaJpZM4bRkQh
.

<!-- gh-comment-id:468115581 --> @athleticmistud commented on GitHub (Feb 28, 2019): what is Afaik? On Wed, Feb 27, 2019 at 6:47 PM Out and About <athleticmistud@gmail.com> wrote: > ok so how can i do the connection with the wifimanager, then i have a > confirmation page that shows the ip address for them is there a way to then > open a browser from there? i can long press and it opens the window is > there a way to do that automatically? > > the .local is not reliable enough so i need to use the ip to acces the > board. how else could i do this ? > > On Wed, Feb 27, 2019 at 5:47 PM Shawn A <notifications@github.com> wrote: > >> Afaik the captive portal is sandboxed, you cannot do anything but open >> local pages in captive window >> >> — >> You are receiving this because you authored the thread. >> Reply to this email directly, view it on GitHub >> <https://github.com/tzapu/WiFiManager/issues/836#issuecomment-468103062>, >> or mute the thread >> <https://github.com/notifications/unsubscribe-auth/Ap-fp3u-2fXxyiWuMOX3YZsl_6lUhrYLks5vRzUbgaJpZM4bRkQh> >> . >> >
Author
Owner

@tablatronix commented on GitHub (Feb 28, 2019):

“As far as I know”

<!-- gh-comment-id:468122458 --> @tablatronix commented on GitHub (Feb 28, 2019): “As far as I know”
Author
Owner

@tablatronix commented on GitHub (Feb 28, 2019):

You can show the url and the user has to open it in a browser by copying it etc

<!-- gh-comment-id:468122694 --> @tablatronix commented on GitHub (Feb 28, 2019): You can show the url and the user has to open it in a browser by copying it etc
Author
Owner
<!-- gh-comment-id:890284313 --> @jmgk77 commented on GitHub (Jul 31, 2021): https://github.com/tzapu/WiFiManager/issues/1178#issuecomment-890284213
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#702
No description provided.