my client application always fail to connect using BSD socket api on ipv6-only network in iOS.
bsd socket api connect fuction always return failure with 65(no route to host)
but if bind socket using specific interface address(en0/ipv6), always succeed to connect.
fail case :
-
try to connect without binding.
-
try to connect after binding using "::" , "0:0:0:0:0:0:0":
success case:
- try to connect after biding using (en0/ipv6) local address (ex 2404:xxxx:fce:4551:xxxx:79c7:xxxx:xxxx)
Does anyone know fail to connect on ipv6 only in iOS if does not bind specific interface local address.