On my device (Android 12), with wifi connection established in IPv6 capable LAN, the line
leads to a runtime error in:
The error message is: "android.system.ErrnoException: connect failed: EINVAL (Invalid argument)"
Note: This is NOT a java.net.Socket.TimeoutException !
If i change the line to
then it works ! (which means, the EINVAL error doesn't occur any more)
So my question is: Why do link-local IPv6 addresses (FE80::...) fail in Android/B4a ?
(btw: in the devices "settings-> connections" a link-local address is correctly shown)
B4X:
Socket1.Connect("FE80::XXXX:YYYY:ZZZZ:RRRR",2222,10000)
B4X:
Sub Socket1_connected(succ As Boolean)
If succ = False Then
Msgbox(LastException.Message, "Error connecting")
Return
End If
The error message is: "android.system.ErrnoException: connect failed: EINVAL (Invalid argument)"
Note: This is NOT a java.net.Socket.TimeoutException !
If i change the line to
B4X:
Socket1.Connect("FE70::XXXX:YYYY:ZZZZ:RRRR",2222,10000)
So my question is: Why do link-local IPv6 addresses (FE80::...) fail in Android/B4a ?
(btw: in the devices "settings-> connections" a link-local address is correctly shown)