From: Anjin P. <Anj...@ai...> - 2009-04-27 20:48:56
|
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 nonce_key="`Mb{dAQ$PGrf2fvha h8Nf+INSS,13[^.&QL^MUZ! +BJu[65W)+gg)8C(S<l^zik" tls = false account_file = /etc/turnserver.conf 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 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. 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 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 ? Thanks for the help in advance. Anjin |