In this article
Keep the first check read-only
Find the app or helper's current PID in Activity Monitor → View → All Processes. Then run:
/usr/sbin/lsof -nP -a -p PID -iTCP -sTCP:LISTEN
Replace PID with the process number you observed. This selects that process's visible TCP listeners without restricting the result to one IP family. It does not connect to the service or alter its settings.
Read TYPE, NAME, and the port together. An IPv6 row containing *:PORT (LISTEN) describes an IPv6 wildcard listener. That row does not expose every setting controlling the socket. If you need the meaning of the wildcard itself, start with what a Mac wildcard listener tells you.
Save the complete row rather than reporting only “IPv6.” If the process restarts, get its new PID before repeating the check. A query of yesterday's process number is not a reliable comparison.
IPv6 does not necessarily mean IPv6-only
The socket API described in RFC 3493 includes an option named IPV6_V6ONLY. Enabling it restricts an IPv6 socket to IPv6 communications. Without that restriction, an appropriately configured IPv6 socket may support both families.
This is a property of the socket's configuration, not a conclusion you can draw from the TYPE column. Applications and libraries can explicitly choose their behavior. For example, Python's socket.create_server documentation provides a dualstack_ipv6 setting and describes checking platform support.
Do not assume every app uses Python, or that every server uses the same defaults. The useful question is whether the particular listener you are investigating accepts the particular connection you need.
| Evidence | Useful conclusion | Still unresolved |
|---|---|---|
| IPv6 in the TYPE column | lsof identifies an IPv6 socket | Whether that listener accepts IPv4 |
| Successful local IPv4 connection | The tested local IPv4 path reached a listener | Access from another device or the internet |
| Successful local IPv6 connection | The tested local IPv6 path reached a listener | Whether an IPv4 client also works |
| App documentation specifies IPv6-only mode | The app offers a relevant configuration | Whether the running instance uses that mode |
Two configurations, the same listener label
We tested this on macOS 15.7.5, Apple Silicon, on November 12, 2026. A disposable process created an IPv6 TCP socket bound to the wildcard address ::, with an operating-system-assigned port. We explicitly set and read back IPV6_V6ONLY rather than relying on a presumed default.
For each configuration, we inspected the listener using the command above. We then connected from two clients on the same Mac: one using 127.0.0.1, the other using ::1. The test closed its sockets after each comparison and served no application data.
| Explicit socket option | Listener row | IPv4 client at 127.0.0.1 | IPv6 client at ::1 |
|---|---|---|---|
IPV6_V6ONLY = 0 | IPv6, *:PORT (LISTEN) | Connected | Connected |
IPV6_V6ONLY = 1 | IPv6, *:PORT (LISTEN) | Connection refused | Connected |
The assigned ports differed between runs; PORT is a placeholder in this table. Both rows had the same address-family and wildcard shape, yet the IPv4 results differed.
In the dual-stack case, the accepted IPv4 peer was represented to the server as ::ffff:127.0.0.1, an IPv4-mapped IPv6 address. That representation did not turn our IPv4 client into a native IPv6 client.
After closing everything, the process-scoped listener query returned no matching rows. The experiment demonstrates local socket behavior on one Mac. It does not test a router, another device, a VPN, or public internet access.
Why filtering to IPv4 can lose useful context
The upstream lsof manual documents an important detail: when an IPv4 network file's address is mapped into IPv6, lsof identifies the file as IPv6 and selects it with the IPv6 filter.
That makes -i4 a poor first step when the question is “could this service accept an IPv4 connection?” A filter can remove the very socket you need to understand. Start with the process-scoped TCP listing across both families, then narrow it for a specific question.
Similarly, an empty result is not a universal statement about the app's networking. The command above selects TCP listeners. It does not inventory UDP activity, a separate helper's sockets, or historical connections. Use the process-scoped connection guide when the question concerns current remote endpoints instead.
Test the service you actually need
Use the application's documented address, protocol, and port first. For a local HTTP service you own, compare its documented URL with explicit IPv4 and IPv6 loopback URLs while keeping the scheme, port, and path unchanged. Do not send HTTP requests to an arbitrary port merely because a TCP listener exists.
Keep the returned error or response. A TCP connection succeeding is a narrower observation than the application returning the expected page. Authentication, TLS, and the requested path can introduce separate failures after a connection is established.
A hostname can introduce another variable. If a failure appears only with localhost, check localhost, 127.0.0.1, and ::1 separately. That helps distinguish address selection from the service's ability to accept a connection.
For an unfamiliar app, collect the app version, current PID, full listener row, observation time, and exact symptom for its support team. Do not change a Mac-wide IPv6 setting just to make the label disappear.
If you administer the service, use its documented binding and dual-stack controls. Restart it only when appropriate, then verify the new process and repeat the relevant test. Preserve the distinction throughout: a socket's family, a successful connection, and access from outside the Mac are three different pieces of evidence.


