Privacy

Website works on one network but not another: compare IPv4 and IPv6

A working browser can hide a broken address-family route. Compare the same hostname over IPv4 and IPv6 before blaming DNS propagation or disabling security.

Made by Pagember · Editorial policy

Editorial guidancePublished Updated Sources

The short answer

Compare the same public hostname and page path over IPv4 and IPv6, because one network may prefer IPv6 and reach a different or outdated endpoint. Browser fallback can hide a broken route, so check which destination each attempt used and whether TLS and HTTP worked there. Then repair the failing layer rather than disabling IPv6 or certificate checks.

On this page8 sections

If a website opens on office Wi-Fi but fails on a phone, do not immediately tell the visitor to clear everything or disable IPv6. The two journeys may reach different endpoints. First establish whether the same public address delivers the intended page over each supported network path.

Two separate conceptual network paths labelled IPv4 and IPv6 lead toward one website, with a gap isolated on the IPv6 route.

Take a hypothetical community center moving its events website. Its new IPv4 route serves the current program, while an overlooked IPv6 route still reaches the previous deployment. The phone network prefers IPv6, the office Wi-Fi has only IPv4, and the two visitors see different sites.

Separate a published address from a working website

RFC 3596 defines AAAA records for IPv6 addresses. Publishing an address is only one part of the delivery chain. It does not establish that the destination has the correct certificate, understands the requested hostname or serves the intended page.

For the center, the question is not merely “Does the domain resolve?” It is “Which destination did this attempt use, and what happened next?” Keep the requested hostname and page path constant. A successful visit to the homepage does not explain a failure on the event-booking page.

The DNS propagation guide explains authority and caching. Use it if DNS answers differ unexpectedly, but do not let a propagation label replace an investigation of the endpoint behind a perfectly consistent answer.

Why a successful browser visit can hide the problem

RFC 8305 describes connection attempts intended to reduce delays when candidate paths behave differently. Such fallback can conceal a broken alternative. The RFC also warns that reaching an endpoint does not establish that TLS and HTTP work there. Do not assume identical timing or fallback in every browser.

In the center's case, an office browser can recover through the healthy route while a phone exposes the stale one. Treat that as a hypothesis to test with the commands below. Record any delay or error alongside the eventual outcome.

A monitor that reports only a final green result may therefore answer a narrower question than the owner intended. Ask what it actually requested and which endpoint answered. Keep a recovered failure visible in the incident notes instead of treating recovery as proof that both routes are healthy.

Build one comparable incident record

RecordHypothetical exampleWhy it matters
Requested addressPublic events hostname and program pathAvoid comparing different pages or redirects
Time and environmentOffice laptop and separate mobile connectionMake later reproduction meaningful
Advertised and selected destinationDNS answers plus endpoint used by the attemptSeparate address publication from selection
Failure stageConnection, certificate, HTTP response or page contentIdentify the responsible delivery layer
Expected resultCurrent program with working navigationA returned page can still be the wrong deployment

Use an ordinary public page for the initial comparison. Do not include account cookies, private URLs or visitor identifiers in a support ticket. A screenshot of an error can supplement the record, but the exact public path and stage usually tell the administrator more than a cropped warning alone.

Keep each observation separate from its interpretation. “The mobile attempt displayed a certificate warning” is an observation. “The hosting company has broken IPv6” is a conclusion requiring evidence about the selected destination and certificate.

Compare address families without bypassing HTTPS

The curl manual provides separate IPv4 and IPv6 options. An administrator can compare otherwise equivalent requests while retaining the hostname and certificate validation. A client without usable IPv6 cannot establish whether the server's IPv6 route is healthy. A HEAD response may also differ from the GET used to retrieve a page.

Give the administrator a precise comparison request: use the same public hostname, path and method; record the selected destination; retain normal HTTPS checks; and capture the outcome for each supported family. If the first environment cannot make an IPv6 connection at all, label that limitation and choose an appropriately connected diagnostic environment.

Commands to compare IPv4 and IPv6

First list the addresses the domain publishes. Replace the hostname with your own and keep it identical in every command.

dig +short A www.example.org
dig +short AAAA www.example.org

Then request the same page once over each family. -4 forces IPv4, -6 forces IPv6, and the -w format prints the status code and the address that actually answered. Certificate validation stays on because the command uses the real hostname and no -k flag.

curl -4 -sS -o /dev/null -w '%{http_code} %{remote_ip}\n' https://www.example.org/events/
curl -6 -sS -o /dev/null -w '%{http_code} %{remote_ip}\n' https://www.example.org/events/

Read the result in three ways. A certificate error on only one line points to the endpoint behind that family. Two 200 responses can still hide a stale deployment, so fetch the page body with each flag (drop -o /dev/null) and compare a line that changed in the new release. If curl -6 fails with "Could not resolve host" or "Network is unreachable", the test machine has no working IPv6, and that result says nothing about the server.

Do not replace the hostname with a bare address and then ignore a certificate error. That changes the question and can hide the exact hostname-routing defect you need to find. Similarly, do not send a private session to a diagnostic service merely to reproduce a public-page problem.

Distinguish the public edge from the origin

A website can have more than one delivery owner. Write down whether the public hostname reaches a proxy or the application server directly. Ask the operator which segment their evidence describes; a healthy visitor-to-proxy route does not, by itself, explain the proxy-to-application journey.

For the center's proposed investigation, put the public-facing result and the deployment inventory side by side. If one destination returns an old program, ask who controls that destination and whether it belongs in the current release. Avoid changing the application's database because a retired endpoint serves an old copy.

Use the WWW and canonical address guide for hostname consistency. Test the exact hostname visitors use; do not assume a correct canonical tag repairs transport or certificate failures before the page can load.

Choose a narrow repair and keep it reversible

Summarize the evidenced mismatch before proposing a change. The center's hypothetical handoff might say: one advertised destination reaches the retired deployment, while the other reaches the approved release. The responsible operator then decides whether to repair that destination or change the advertised routing through a planned, recoverable update.

Keep the previous configuration, the intended deployment and the verification plan together. An IPv6 address should not be deleted simply because one unconnected laptop cannot test it. Equally, leaving a known broken route advertised is not a substitute for investigating it.

Certificate warnings require their own diagnosis. Do not weaken browser security to make the comparison appear successful. If only one family shows a warning, use the certificate warnings guide to check the name, chain and expiry date on that endpoint. The HTTPS mixed-content guide covers another possible page-delivery problem, which should remain distinct from an address-family mismatch.

Accept the repaired visitor journey

  1. Repeat the documented public-page comparison from environments that support the relevant families.
  2. Confirm the expected hostname, normal certificate validation and intended page content.
  3. Check the affected navigation path, including its redirects, rather than only the homepage.
  4. Record any remaining environment limitation or recovered failure.
  5. Retain enough configuration history to undo the specific change if a new fault appears.

Close the incident when the observed delivery paths meet the site's actual requirements. A single successful browser visit, an answered DNS query or a disabled security check cannot provide that evidence on its own.