5

Normally, Safari provides a pop-up window for the public Wi-Fi's landing page: requesting the user to agree to TOS (Terms of Service).

Attempts to login to Wi-Fi were not successful:

  • ifconfig revealed an IP address (172.31.99.185)was assigned to the laptop's Wi-Fi adapter
  • attempts to ping 172.31.99.1 failed
  • browsing to http://172.31.99.1/ failed
  • browsing to http://www.google.com/ failed

Is there a Safari menu item or process that will call the TOS pop-up?

  • Are you administrating the WiFi network yourself? What do you mean by ‘losing wifi’? – IconDaemon Mar 28 '18 at 1:22
  • No, not administering. Thanks for pointing out the autocorrect typo – gatorback Mar 28 '18 at 1:33
  • Is the problem happening everywhere or only on those two? From what you provided, you are connected to Wi-Fi as evidenced by the IP address, you just haven't been granted permission to pass traffic to/from the Internet gateway. For the record, most public Wi-Fi drop ICMP packets (such as ping) for security. ping not working is not indicative of a failure, per se. – Allan Mar 28 '18 at 7:54
  • @Allan: I have only tested 'Public' wifi at the two sites. Yes: agreeing to TOS opens the internet gateway. – gatorback Mar 28 '18 at 16:11
  • Starbucks and MCD's may use the same provider for their captive portal - try another location like a hotel, Ikea, Office Depot, etc. Also, check that you don't have a proxy configured. – Allan Mar 28 '18 at 16:21
7

Go to captive.apple.com it’s the only way to ensure it pops up.

  • JBis! You’re my hero! Captive.apple.com immediately solved my problem – Jonathan Segal Dec 6 '18 at 21:57
  • @JonathanSegal No Problem. And you can call me......CAPTIVE MAN! ;) – JBis Dec 6 '18 at 22:47
2

Usually captive portals are triggered by DNS and web browser requests to sites like cnn.com or nyt.com so I would try that first.

  • Good comment: I forgot to include that attempts to access google or other websites failed. Question updated: thank you – gatorback Mar 28 '18 at 1:20
  • You're accessing google with a real browser and no curl or the command line, @gatorback ? – bmike Mar 28 '18 at 2:05
  • Attempts to access http resources are with Safari browser. Ping is performed through command line – gatorback Mar 28 '18 at 16:13
  • 1
    First, I try using the wi-fi provider's site, e.g. if at Starbucks, I'll visit starbucks.com. This will often kickstart the process. Second, I find that different places work better with different browsers. Sometimes, Firefox or OmniWeb will bring up a portal page when Safari does not. – Mockman Mar 30 '18 at 2:15
2

If the captive portal auto detection doesn't work, and hitting a common domain (like google.com), try a domain you don't normally visit (and hence won't be cached anywhere). Try borg.org, for example.

If that still doesn't get you the landing page, it's time for extreme measures. You can get more information about the DHCP config it got with ipconfig getpacket en0 (or en1, or whatever the Wi-Fi interface is); look especially at the "server_identifier" (the server that sent the info), "router", and "domain_name_server" lines. Try hitting those in your browser and see if any get you a landing page.

Still nothing? Next try host www.cnn.com x.x.x.x where x.x.x.x is the domain name server (if there are several, try with each). If you get back any IPs that weren't already on the list, try them in a browser.

BTW, the reason this sometimes doesn't work automatically is basically that it's all highly nonstandard. Captive portals are a hack that someone came up with to control access to a wireless network in a way that the standards didn't handle. Lots of other manufacturers copied the idea, but everyone did it a little differently, and it hijacked real web pages in the browser, and was generally a mess. So Apple built a system into macOS that'd try to detect captive portals and display the landing page automatically, in a way that didn't hijack the browser... but since there are so many variants on the idea, it's hard to build a system that handles them all. And then sometimes the local network admin sets things up weirdly, and... basically, it's a hack to get around another hack, and as a result there are a lot of ways for it to fail. Frankly, I'm kind of amazed it works as often as it does.

1

If you’re using a DNS service like 1.1.1.1 or Google DNS, try disabling it temporarily until you’re fully connected. I’ve had success with this technique.

0

Usually www.cnn.com works for me, but not lately on my Mac Air. What worked was opening up Safari browser and entering www.purple.com . The login page popped up immediately!

  • Welcome to Ask Different! Please refrain from adding comments in the Answer section, this is for answers to the questions. Once you have sufficient reputation you’ll be able to add comments and ask follow-up questions. To gain reputation, answer questions that are clear and concise. - From Review – fsb Mar 22 at 0:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .