From: Sebastien V. <seb...@tu...> - 2009-04-28 04:56:21
|
Hello, Anjin Pradhan a écrit : > Hi Everyone, > > I am running a simple echo server in address 203.159.32.1 "<Peer > Address>" at port "<Peer Port>" 2002. After that i am running the echo > server client as well as the turn server in machine address > 203.159.101.5 "<Server address>" "<Client Address>". And this is the > configuration, i am using for the turn server. And i am using TCP for > the communication between the client and the server. > > listen_address = {203.159.101.5} > tcp_port = 2119 > That it!, the client samples connect to default TURN port 3478 and it is hardcoded in client source. So change the tcp_port parameter to 3478. > nonce_key="`Mb{dAQ$PGrf2fvha h8Nf+INSS,13[^.&QL^MUZ! > +BJu[65W)+gg)8C(S<l^zik" > tls = false > account_file = /etc/turnserver.conf > You account_file should be turnusers.txt not turnserver.conf. You take extra/turnusers.txt template ? All lines from turnusers.txt contains three information separated by a ":" like this login:password:domain.org I recommend you to take the template configuration and account file in extra/, make some modification like the nonce and the path of account file. As you use the release 0.2.2 version, just replace "toto" with "ping6" in turnusers.txt file (this has been fixed in SVN version). In the client samples the credentials used are also hardcoded in the source. > After starting the echo server, i start the client and it pauses. Then > when i run the test_client_tcp i get connect refused error message. > > anjin@anjin-IBM-31:~/Desktop/turnserver-0.2.2/src$ ./test_client_tcp 203.159.101.5 203.159.101.5 203.159.32.1 2002 > 0 > connect: Connection refused > > See above. To have debug information in turnserver, reconfigure the project and recompile: ./configure --enable-debug-build ; make clean ; make > Is this because i am running the turn server and the client in the same > machine ? If this is not the case could this be a network issue? Or i am > missing or miss interpreting some information that is causing this > error? > > Also don't i need to specify the nonce_key in the test_client_tcp.c? If > i have to can someone please let me know how. > No. > I also tried putting in all the parameter in the configuration file for > the turn server but still i am getting the same error message. And also > tried running turn server, echo server and client in the same machine > but i am still getting the same error. > I recommend to have all parameters in the configuration file. > I am assuming if i can get the test_client_tcp running. It will relay my > message from 203.159.101.5 received on port 2119 to 203.159.32.1 on port > 2002. Also i am assuming the data flow is bi-directional. Am i correct > to assume this ? > Data flow is bidirectional as soon as the server has a permission installed for the peer address (and if it is still valid). > Thanks for the help in advance. > > Anjin > > > Hope it helps. -- Sebastien |