Captive-Portal
Captive-Portal copied to clipboard
Browser did not pop up automatically
Hi,
I implemented your script. When I select the hotspot SSID using an iphone, the safari did not activate automatically. I need to start the browser (in this case safari) and key in hotspot.localnet before it goes to the captive portal.
Anyway for the browser to startup when sign into the hotspot?
Rggs, James
Seems like the popup logic did not work on my iphone 7 (safari), iphone 11 Pro Max (safari) and MacBook Pro (chrome).
Any pointers on where I could search for solution on the popup logic?
Hi,
I have a Mac Book Pro Catalina 10.15.5.
When I tested it today, the popup didn't work. I captured traffic on Raspberry pi and used wireshark to see what was happening.
When Mac connected to CaptivePortal there was no internet and my Mac having manual DNS of 8.8.8.8 tried to resolve captive.apple.com. That wasn't successful.
When I changed the DNS on my Mac to Automatic, it get a proper response from Raspberry pi and popup worked fine. The logic, from what I understand, is that Mac has to be able to resolve captive.apple.com to 17.253.35.204 but no other traffic is allowed.
Can you set your DNS to automatic?
If this still doesn't work:
Install tcpdump apt-get install tcpdump
Start capturing traffic to a file tcpdump -s 0 -i wlan0 -w mac.pcap
Connect to CaptivePortal and if popup is not happening, open captured file in Wireshark.