If Claude Code works reliably and both IPv4 and IPv6 use the intended SSNLY route, you can leave IPv6 enabled. If prompts sometimes time out, or the proxy log shows only IPv4 despite your device having public IPv6 connectivity, try a controlled comparison. Keep the same node, temporarily limit the proxy client to IPv4, and repeat the same request.
The question is simple: does the problem appear only when the IPv6 path is available?
Why can IPv4 and IPv6 take different routes?
A hostname can have both A and AAAA records. An A record supplies an IPv4 address. An AAAA record supplies an IPv6 address. When the proxy client captures both protocols and can see the hostname, one domain rule can cover both. Paths can diverge when the client captures only IPv4, the route table lacks the intended IPv6 route, or an IP rule contains only IPv4 ranges.
| Request | Configuration | Possible result |
|---|---|---|
| IPv4 | The client captures the connection and matches the SSNLY rule | The request uses the selected SSNLY exit |
| IPv6 | The client captures IPv6 and has a matching rule | The request can also use the intended route |
| IPv6 | A direct route is available and the client does not capture it | The connection may leave through the local ISP |
| IPv6 | The system attempts an IPv6 connection over a broken path | The first response may be slow, or the request may time out |
Traffic that bypasses a proxy may never appear in its log. An empty IPv6 log can also mean that this particular request selected IPv4. Check the route configuration and repeat the test to distinguish those cases. Dual-stack connections and Happy Eyeballs
Does a residential IPv6 address change?
It depends on how the ISP assigns the network prefix and how the device generates its address. A home network can retain a relatively stable prefix while a laptop or phone rotates temporary addresses within it. One IP lookup cannot tell you how long an address will last or how another user in the same /48 might affect an account. IPv6 temporary address specification
Six reasons to run an IPv4 comparison
- You suspect traffic is bypassing the proxy. Keep the same node and compare the same API request in dual-stack and IPv4-only modes. Check the matched rule and outbound connection for
api.anthropic.com. - The first request is slow, but a retry is fast. Differences between the IPv4 and IPv6 paths can affect connection setup. DNS caching and connection reuse can produce similar symptoms, so repeat the test several times in each mode. Happy Eyeballs connection behavior
- DNS results differ from what you expect. Check which resolver handles A and AAAA lookups. Suppressing AAAA responses changes address selection. Verify the route carrying the DNS queries separately. DNS Test
- One device appears to have exits in two regions. Record the IPv4 and IPv6 exits separately and compare them with your routing policy. The difference helps identify a routing issue. On its own, it cannot establish why an account check or API rate limit occurred. IP Lookup
- A domain rule sometimes misses. Check whether the client matched the hostname or its resolved address. In Xray, for example,
IPIfNonMatchcan resolve a hostname after domain rules miss and continue matching against IP rules. Check the order of the IPv4 and IPv6 rules that follow. Xray routing documentation - Too many settings have changed at once. Keep the device, node, DNS settings, and prompt the same. Change only the address family. If both modes behave alike, restore the original setting and investigate the terminal proxy, certificate, or service error.
Start with the proxy client
For a Mihomo-based client already using its built-in DNS service, set ipv6: false inside the existing dns block. Preserve your configured resolvers and other DNS settings. Edit the existing block so the file has a single dns section.
dns:
ipv6: false
Mihomo’s DNS service will then return empty answers for AAAA queries. This applies to lookups handled by that resolver. Applications using their own DNS, cached IPv6 addresses, and connections outside the client’s capture scope need separate checks. Mihomo DNS configuration
Mihomo also has a top-level option that controls whether its core accepts IPv6 traffic:
ipv6: false
Record the original value, change one setting at a time, and reload the client before testing. Restore the original value and reload to return to your previous configuration. Other clients use different syntax. Settings such as ipv6 = false, ForceIPv4, and UseIPv4 belong to specific clients or configuration fields. Mihomo general configuration
When should you change the system or router?
| Environment | What to check |
|---|---|
| Linux | Use ip -br link to identify the active interface. Record the current value of sysctl net.ipv6.conf.<interface>.disable_ipv6. For a temporary interface-specific test, set it to 1, then restore its original value. Preserve the setting on an interface carrying your remote session over IPv6. Linux kernel documentation |
| macOS | Open System Settings → Network → your active network service → Details → TCP/IP. The available IPv6 options depend on the service. Record the current setting before testing. Apple TCP/IP settings |
| Windows | Start in the proxy app. If a system-wide change is necessary, Microsoft recommends the prefix policy that prefers IPv4. Disabling IPv6 or unbinding it from an adapter can affect Windows components. Microsoft IPv6 guidance |
| Router | Changes affect other devices on the network. Turning off DHCPv6 alone can still leave devices able to configure addresses through router advertisements and SLAAC. For an issue on one computer, a client-level test is easier to reverse. IPv6 stateless address configuration |
What do you give up by disabling IPv6?
Some networks have a faster IPv6 path, and some services are reachable only over IPv6. Restricting it can make those connections slower or unavailable. A temporary change in one proxy app has a narrower impact than changing the entire device or router.
Decide whether to keep the change
On the same SSNLY connection, send the same request with the original settings and with the IPv4 test settings. Record whether it succeeds, how long the first response takes, and whether a longer reply finishes. Restore the original settings and repeat once more.
If the problem repeatedly follows the IPv6 setting, inspect IPv6 capture, DNS, and routing in the client. If both modes behave alike, keep your original configuration and follow the actual error. Claude IP Check and the WebRTC Test can help with browser-side checks. Use Claude Code’s result and the proxy log to verify the terminal request.
Related guides: A Guide to Using Claude Code Reliably · Domain Routing Guide