I just wrote my first code which have to set a specific outgoing port and network ip address for IPv6.
And I failed.
In my case OpenNetworkConnection() have only success when I leave the last to optional values empty.
Or
Code: Select all
OpenNetworkConnection("xxx:xxx:xx:xx::x", 5060, #PB_Network_UDP|#PB_Network_IPv6, "", 0)
As soon as I set a LocalPort and/or a LocalIP$ it fails.
I tried all available IPv6 addresses.
Somebody who had success
Code: Select all
InitNetwork()
Con = OpenNetworkConnection("google.com", 80, #PB_Network_UDP|#PB_Network_IPv6, 1000, "", 0)
If Con
Debug "Ok"
CloseNetworkConnection(Con)
Else
Debug "Failed"
EndIf
Con = OpenNetworkConnection("google.com", 80, #PB_Network_UDP|#PB_Network_IPv6, 1000, "", 10001)
If Con
Debug "Ok"
CloseNetworkConnection(Con)
Else
Debug "Failed"
EndIf
I'm on Win10 x64 with PB 5.70B2 x86
Bernd