"Network unreachable" error trying to connect socket from iPadOS 16 back to macOS 13

This seems to have broken as of my update from iPadOS 15 to 16. Now our connect returns "Network unreachable" on the connect() call, and the select() call times out after 10 or 30s. I have "Developer Mode" enabled on the device.

We are just trying to connect the iPad back to the devhost mac that is running the application.

When the mac does the same connect to the same IP, connect returns "Connect in progress", and the select succeeds in setting up the socket.

I'm using macOS 14.1 on macOS Intel, and Xcode 14.1.

Replies

I found the issue. Apparently Apple thought it would be fun on iOS to add and also enable "Private Wi-Fi Address" by default in the Wi-Fi settings . This replaces the DHCP address that our device needs to be on to connect back to macOS which needs to be on the same IP range. Ugh.