From: Sebastien V. <se...@ji...> - 2012-02-16 07:59:00
|
Hi Bill, See inline. Le 15/02/12 20:27, Bill Clark a écrit : > > Hello -- > > We recently found this project to provide TCP Relay and we're in the > evaluation process. Unfortunately I have not found documentation > describing proper use and setup of Test Turn Client. > > Q. Can someone please point me to (or provide) instructions of > establishing a TCP relay between two clients which transmit data? > Here are the actors schema of how works TURN-TCP: TURN-TCP client <--------> TURN server <-------> standard TCP server (HTTP, SSH, ...) or standard TCP client (telnet, ...) In fact there are two ways to make a TCP relay: - the TURN-TCP client establish the connection (connect); - the TURN-TCP client receive the connection (listen). If you have not did it, I suggest you to read the TURN-TCP specification (http://tools.ietf.org/html/rfc6062) to better understand all the concepts. Let's consider the following situation: - TURN server : 192.168.0.254 - TURN-TCP client: 192.168.0.1 - TCP server: 192.168.0.5 running an HTTP server on port 80 - domain: yourdomain.org - user/password: test/1234 Basically to test the first way (connect) with the test_turn_client, you need to run: ./test_turn_client -t tcp -s 192.168.0.254 -p 192.168.0.5 -w 80 -r tcp -t test -g 1234 -d yourdomain.org To test the second way (another standard client connect to TURN-TCP client), it is a bit more complicated you have to run a nestat -aptn on the TURN server, get the port allocated by the TURN-CLIENT and do a connection on that port from a standard TCP client (like telnet) IIRC in the 10 seconds after running the above test_turn_client command. > We have the turn server running on standard ports 3478, basic > authentication (file test/1234) and configured to allow TURN-TCP > (turn_tcp = true). > > Another area of clarification that would help is determining values to > provide test_turn_client peer address and port. What should these > values be for each test_turn_client instance? > The peer address and port is the address/port of the peer you want to contact (connect), typically in the above case it is the HTTP server. Best regards, -- Seb > Thank you in advanced. > > Regards, > > Bill Clark > > > > ------------------------------------------------------------------------------ > Virtualization& Cloud Management Using Capacity Planning > Cloud computing makes use of virtualization - but cloud computing > also focuses on allowing computing to be delivered as a service. > http://www.accelacomm.com/jaw/sfnl/114/51521223/ > > > _______________________________________________ > Turnserver-users mailing list > Tur...@li... > https://lists.sourceforge.net/lists/listinfo/turnserver-users |