Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browser did not pop up automatically #7

Open
jamesee opened this issue Jun 13, 2020 · 2 comments
Open

Browser did not pop up automatically #7

jamesee opened this issue Jun 13, 2020 · 2 comments

Comments

@jamesee
Copy link

jamesee commented Jun 13, 2020

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

@jamesee
Copy link
Author

jamesee commented Jun 13, 2020

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?

@23ewrdtf
Copy link
Owner

23ewrdtf commented Jun 13, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants