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.