UDP connection message

in Help Center
I try to get connect info from Ice::Current,but i found cur.con->toString()
can get really info,but datagram can't.
Info like this:
TCP:
local address = 192.168.0.75:10000
remote address = 124.114.173.58:57979
UDP:
local address = 0.0.0.0:10000
remote address = <not connected>
How to get the right info when use datagram?
can get really info,but datagram can't.
Info like this:
TCP:
local address = 192.168.0.75:10000
remote address = 124.114.173.58:57979
UDP:
local address = 0.0.0.0:10000
remote address = <not connected>
How to get the right info when use datagram?
0
Comments
server config:
Hello.Endpoints=tcp -p 10000:udp -p 10000:ssl -p 10001
changed it like this,but fail same too.
iHello.Endpoints=tcp -h192.168.1.100 -p 10000:udp -p 10000:ssl -p 10001
I try to get it to make "UDP Hole Punching", it's always used for P2P,ICE can do it?
server config:
Hello.Endpoints=tcp -p 10000:udp -p 10000:ssl -p 10001
changed it like this,but fail same too.
iHello.Endpoints=tcp -h192.168.1.100 -p 10000:udp -p 10000:ssl -p 10001
I try to get it to make "UDP Hole Punching", it's always used for P2P,ICE can do it?
This reports:
That is correct, since if you don't have the -h option, the udp endpoint is bound to 0.0.0.0 (meaning all interfaces). If you want to bind to a specific interface for udp, then you must specify the -h option for the udp endpoint. In your case, you need at a minimum:
I don't think, however, with Ice it will be directly possible to do NAT hole punching, as you cannot determine the sender IP address for UDP endpoints.
oneway TCP:
local address = 192.168.1.100:10000
remote address = 192.168.1.100:22175
datagram UDP:
local address = 192.168.1.100:10000
remote address = <not connected>
still can't get remote address , i can get IP in other way,but how to get the port?it's same to 22175?
and how ice can do NAT hole punching?Glaceier2?
oneway TCP:
local address = 192.168.1.100:10000
remote address = 192.168.1.100:22175
datagram UDP:
local address = 192.168.1.100:10000
remote address = <not connected>
still can't get remote address , i can get IP in other way,but how to get the port?it's same to 22175?
and how ice can do NAT hole punching?Glaceier2?