Skip to content

Troubleshooting guide

511 Network Authentication Required: how to fix it

A 511 comes from the network, not the website: a Wi-Fi captive portal wants you to sign in or accept terms before letting traffic through.

3 min read10 sectionsUpdated

On this page

Key points

  • The Wi-Fi network answered, not the site.
  • Sign in to the portal and everything works.
  • HTTPS sites often show certificate errors instead.
  • Apps fail silently until you sign in.

What it means

RFC 6585 defines 511 for intercepting proxies that require authentication to gain network access. Hotels, airports, cafés and some offices use captive portals; until you accept terms or log in, they answer requests themselves.

Common causes

  • Public Wi-Fi requiring sign-in.
  • Expired captive portal session after some hours.
  • Office networks requiring device registration.

Fixes if you are visiting the site

  1. Open a plain HTTP site such as http://neverssl.com to bring up the sign-in page.
  2. Accept the terms or log in, then reload.
  3. Disable VPNs and private DNS temporarily: they can hide the portal page.
  4. Reconnect to the Wi-Fi if the session expired.

Fixes if it is your site

Nothing to fix on your website. Apps should detect captive portals and tell users to sign in rather than showing generic errors.

Reading the status code like an engineer

An HTTP status code means the connection worked and a server answered, so the network is fine and the question is which server answered and why. Look at the response headers: Server, Via and CDN-specific headers (cf-ray, x-cache) show whether a CDN, a proxy or your application produced it, and the body format usually confirms it. Then reproduce the exact request with curl, including method, headers and body, and compare it with a request that works. Monitoring should alert on unexpected codes for important URLs, and on rates of 4xx and 5xx rising after a deploy, rather than on every single error.

How site owners catch this before visitors do

Most visitors who hit 511 Network Authentication Required leave without telling you. An uptime check every minute, with a keyword assertion on the page and an SSL check on every run, turns this from a support ticket into an alert. Keep the history: errors that come and go (one region, one server behind a load balancer, one in twenty requests) only make sense on a timeline. Put the result on a status page so people stop guessing. You can test any address now with the free website down checker.

Frequently asked questions

Why does the Wi-Fi login page not appear?

HTTPS sites cannot be redirected; open an HTTP site to trigger it.

Is my website broken?

No, the visitor’s network is intercepting the request.

Do VPNs help?

They usually fail until you sign in to the portal.

Watch your own site and services with VitalRix

Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.