# fix\(shared\): port probes no longer fail on hosts with IPv6 disabled · pingdotgg/t3code

[View on GitCafe](https://git.cafe/pingdotgg/t3code/commit/2ae7cb020b0bb6a958398b542588e0bb5d2fbe94)

Repository: [pingdotgg/t3code](https://git.cafe/pingdotgg/t3code)

Visibility: public

Requested revision: 2ae7cb020b0bb6a958398b542588e0bb5d2fbe94

Requested commit: 2ae7cb020b0bb6a958398b542588e0bb5d2fbe94

Commit: 2ae7cb020b0bb6a958398b542588e0bb5d2fbe94

Tree: 084c06100fd980323900e65323aae97a8c0ce3f3

Author: Claude

Committer: Claude

## Message

```
fix(shared): port probes no longer fail on hosts with IPv6 disabled

On hosts where the kernel has IPv6 disabled, binding `::1` fails with
EAFNOSUPPORT rather than EADDRNOTAVAIL. canListenOnHost treated that as
"port taken", so `vp run dev` reported every port from 0 to 65535 as
unavailable and findAvailablePort never returned the preferred port.
Treat EAFNOSUPPORT the same as EADDRNOTAVAIL.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CxLHnfmdqBAuYjahhhM2jo

```

## Parents

- [6cecd22789f11fd325933a5d8859d6c09d6e7261](https://git.cafe/pingdotgg/t3code/commit/6cecd22789f11fd325933a5d8859d6c09d6e7261?format=markdown)

[Source at this commit](https://git.cafe/pingdotgg/t3code/tree/2ae7cb020b0bb6a958398b542588e0bb5d2fbe94?format=markdown)
