I am using xirsys turn server.
Now I want to connect client A which is behind symmetric NAT with client B which is also behind symmetric NAT.
- On which port should I listen on client A?
- To which ip and port should I connect to establish tcp connection with client A from client B?
- How can I obtain the ip of xirsys turn server?
On client A I want to run this command, but I dont know which port should I use:
sudo tcpdump -ni any port ???
On client B I want to run this command, but I dont know which ip and port should I use:
echo "Hello from B" | netcat ip??? port???
PS. The xirsys after executhing this command:
curl -s -H "Content-type: application/json" -XPUT "https://name:pass@global.xirsys.net/_turn/app" -d '{"format": "urls"}'
Return something like this
{
"s" : "ok",
"v" : {
"iceServers" : {
"credential" : "123",
"urls" : [
"stun:eu-turn4.xirsys.com",
"turn:eu-turn4.xirsys.com:80?transport=udp",
"turn:eu-turn4.xirsys.com:3478?transport=udp",
"turn:eu-turn4.xirsys.com:80?transport=tcp",
"turn:eu-turn4.xirsys.com:3478?transport=tcp",
"turns:eu-turn4.xirsys.com:443?transport=tcp",
"turns:eu-turn4.xirsys.com:5349?transport=tcp"
],
"username" : "123"
}
}
}