yash-sanghvi / ESP32

118 stars 60 forks source link

Captive Portal does not show up #2

Open audreylim opened 2 years ago

audreylim commented 2 years ago

Hello

I ran this code https://github.com/yash-sanghvi/ESP32/blob/master/Captive_Portal/Captive_Portal.ino after following this tutorial: https://iotespresso.com/create-captive-portal-using-esp32/

However, the captive portal page does not show up when I click on the esp-captive network. It just brings me to this page: captive

I'm using an ESP32 DevKitC 32U. I'm not sure if it's related to an antenna issue https://github.com/espressif/arduino-esp32/issues/6348#issuecomment-1052134618. Is there something else I might be missing while I wait to test this on other ESP32 modules?

yash-sanghvi commented 2 years ago

Hello @audreylim, Could you confirm your operating system (Android/iOS) and browser? Can you also confirm if you are able to reproduce the same on a different combination of operating system and browser?

Also, the Serial Monitor dump when you try to connect to the ESP32's WiFi network will help.

h-enes-simsek commented 2 years ago

I have the same problem. It works perfecly on my Win10 PC. However, it is not working correctly on my Samsung Galaxy S20, Android 11.

I have to open Wifi settings and manually open the management page. The i am able to send dummy form data to server. My phone alerts there is no internet on this wifi.

ceren16 commented 1 year ago

Hello @h-enes-simsek and @yash-sanghvi did you solve this problem ? I have sam problem . can you help me ? thanks.

h-enes-simsek commented 1 year ago

@ceren16 In order to open the captive page automatically in android we need to use IPs other than private ones like 192.168.x.x The default IP is 192.168.4.1 so it should be configured. That was my problem.

avivsabilal29 commented 5 months ago

@audreylim

In fact, the issue of the popup not appearing on the captive portal is due to not setting the default IP on the DNS server, the default IP of Android.