Turn Server Install and proper settings in Windows Cygwin Info needed

3,532 views
Skip to first unread message

Himadree Shekhar

unread,
Sep 23, 2013, 8:29:38 PM9/23/13
to turn-server-project...@googlegroups.com
Dear group members,

I am a very beginner in using rfc5766 turn server in windows.Recently I have installed rfc5766-turn-server 2.6.3.1 and Cygwin 1.7.25 and libevent2 in windows vista 32-bit. But it is showing some error.I have read the Install and readme files, but still didn't get clear answers.I also ask about this on this forum and they said its still ok ,but i just need to install OpenSSL key and certificate.Here i also provide the errors:


$ turnadmin -k -u my_username -p my_password 0x0ccf968d019ce408234953486ebf0666 $ turnserver -c usr/local/etc/turnserver.conf.default -b usr/local/etc/turnuserd b.conf.default -L 27.177.187.35
1379982138: RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server 1379982138: version Citrix-2.6.2.1 'Harding Grim' 1379982138: ===================================================== 1379982138: Multithreading supported 1379982138: TLS supported 1379982138: DTLS supported 1379982138: Multithreaded relay supported 1379982138: Redis is not supported 1379982138: PostgreSQL is not supported 1379982138: MySQL is not supported 1379982138: OpenSSL multithreading supported 1379982138: OpenSSL version: fresh enough 1379982138: RFC 6062 support: limited 1379982138: ===================================================== 1379982138: WARNING: Cannot find config file: usr/local/etc/turnserver.conf.default. Default and command-line settings will be used. 1379982138: Listener address to use: 27.177.187.35 1379982138: WARNING: Cannot find config file: usr/local/etc/turnserver.conf.default. Default and command-line settings will be used. 1379982138: WARNING: Cannot find userdb file: usr/local/etc/turnuserdb.conf.default: going without flat file user database. 1379982138: WARNING: cannot find certificate file: turn_server_cert.pem (1) 1379982138: WARNING: cannot start TLS and DTLS listeners because certificate file is not set properly 1379982138: WARNING: cannot find private key file: turn_server_pkey.pem (1) 1379982138: WARNING: cannot start TLS and DTLS listeners because private key file is not set properly 1379982138: Relay address to use: 27.177.187.35 1379982138: pid file created: /var/run/turnserver.pid 1379982138: IO method (main listener thread): poll 1379982138: IPv4: On this platform, I am using alternative behavior of TTL according to RFC 5766. 1379982138: IPv6: On this platform, I am using alternative behavior of TTL (HOPLIMIT) according to RFC 6156. 1379982138: IPv4: On this platform, I am using alternative behavior of TOS according to RFC 5766. 1379982138: IPv6: On this platform, I am using alternative behavior of TRAFFIC CLASS according to RFC 6156. 1379982138: WARNING: I cannot support STUN CHANGE_REQUEST functionality because only one IP address is provided 1379982138: IO method (udp listener/relay thread): poll 1379982138: IO method: poll bind: Address already in use 1379982138: ERROR: (src/apps/relay/tls_listener.c:create_server_listener:141) Trying to bind fd 13 to <27.177.187.35:3478>: errno=112 Cannot bind local socket to addr: Address already in use 1379982138: Cannot bind TCP/TLS listener socket to addr 27.177.187.35:3478 1379982138: IO method (nonudp relay thread): poll 1379982138: IO method (nonudp relay thread): poll 1379982138: IO method (auth thread): poll





I want to know If i install this server properly in my pc with my public ip, can other clients get remotely relay access through it ? Or still i need some DNS and hosting?

How can I setup the turn server with my public ip address: whats the Proper Command to do so?

Every time it shows error either turnserver.conf or turnuserdb.conf didn't found.How to resolve this?

Why can't it bind TCP with my ip address?

Please Help Me With Clear Answers.
Thanks

Oleg Moskalenko

unread,
Sep 23, 2013, 9:02:46 PM9/23/13
to turn-server-project...@googlegroups.com
Please read carefully the turnserver screen output. It says lots of useful things:

1) It cannot find the config files which you provided. It cannot find usr/local/etc/turnserver.conf.default. I guess this is because it must be, really,  /usr/local/etc/turnserver.conf.default. You are probably new to Unix environment. If you are using full file path then you have to put / as the first character in the file name.

2) The same with the other config file.

3) It cannot find *.pem files but this is probably OK for your purposes.

4) It is clearly saying that it cannot create a listener on your IP address with port 3478. That means that somebody else already is using that port, for something else. Do you have another TURN server already running on the system ? Or may be this is about permissions on your system ? The fact is, something is not allowing a new listener on that IP and address. Only you can find out what is blocking that port.

5) See also below:


On Monday, September 23, 2013 5:29:38 PM UTC-7, Himadree Shekhar wrote:

I want to know If i install this server properly in my pc with my public ip, can other clients get remotely relay access through it ? Or still i need some DNS and hosting?

If you have unrestricted public IP address then everything must be just fine. The clients have to be able to find your system - through TURN server IP address or DNS name.
 

How can I setup the turn server with my public ip address: whats the Proper Command to do so?

There are millions possible configurations and setups. Nobody can answer that question - how to set TURN server in your particular case, what must be the command. See the examples in Internet (use links on the main project page) and check the examples in the examples directory.
 

Every time it shows error either turnserver.conf or turnuserdb.conf didn't found.How to resolve this?

I answered that above
 

Why can't it bind TCP with my ip address?


I answered that above

Oleg

 

Himadree Shekhar

unread,
Sep 25, 2013, 5:00:40 PM9/25/13
to turn-server-project...@googlegroups.com
Thanks Mr. Oleg Moskalenko . I wil try from the scratch.
When i try to install openssl  with cygwin using make install command i always get this error below:

./pod2mantest: line 34: pod2man: command not found
pod2man does not work properly ('BasicTest' failed).  Looking for another pod2man ...
No working pod2man found.  Consider installing a new version.
As a workaround, we'll use a bundled old copy of pod2man.pl.
/asn1parse.1an1
: No such file or directory/ssl/man/man1
Makefile:639: recipe for target `install_docs' failed
make: *** [install_docs] Error 1

And after that even the turn server doesn't install.
So how to resolve this?

Thanks

Oleg Moskalenko

unread,
Sep 25, 2013, 5:06:04 PM9/25/13
to turn-server-project...@googlegroups.com
As far as I understand, you must not install openssl in Cygwin "manually". I remember that I had some difficulties, too. Use the openssl package in the Cygwin repository and install it with graphical "setup.exe" utility supplied with Cygwin. It installs and works flawlessly for me.

Also, remember that you have to install not just the runtime openssl, you have to install the "full" openssl development package (I do not remember that package name, I have no Windows system right now, look for something like openssl-dev in the Cygwin repository).

Regards,
Oleg

Himadree Shekhar

unread,
Sep 28, 2013, 12:55:19 PM9/28/13
to turn-server-project...@googlegroups.com
Thanks for your reply. I again start re-installing from the beginning.This time i also include  openssl runtime and full development package.But while installing libevent-2.0.21-stable i got 2 errors given below:

libtool: install: /usr/bin/install -c .libs/libevent.a /usr/local/lib/libevent.a
libtool: install: chmod 644 /usr/local/lib/libevent.a
libtool: install: ranlib /usr/local/lib/libevent.a
C:\Dwimperl\c\bin\ranlib.exe: '/usr/local/lib/libevent.a': No such file
make[3]: *** [install-libLTLIBRARIES] Error 1
make[3]: Leaving directory `C:/cygwin1/libevent-2.0.21-stable'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `C:/cygwin1/libevent-2.0.21-stable'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `C:/cygwin1/libevent-2.0.21-stable'
make: *** [install] Error 2

So how can i resolve this.Are they mandatory to resolve or just i can skip them?

Thanks Mr. Oleg for your regular responses

Oleg Moskalenko

unread,
Sep 28, 2013, 5:03:48 PM9/28/13
to turn-server-project...@googlegroups.com

With Cygwin, we do not recommend "manual" installation of third-party software, like libevent, openssl or database libraries. There are ready-to-use pre-compiled packages in the Cygwin repository. Run the setup*.exe utility and type "libevent" in the search string. You will see libevent-devel and libevent2.x packages. Just install them from the repository. This is how I do it and I have no problems.

Regards,
Oleg

Himadree Shekhar

unread,
Sep 29, 2013, 5:44:23 AM9/29/13
to turn-server-project...@googlegroups.com
thanks Oleg for reply,

I try to find the libevent-devel and libevent2.x packages inside Cygwin repository setup  utility.But there is no libevent.I also search in cygwin website.I saw that the latest cygwin versions doesn't include libevent package.So in that case will it work, if i install libevent-devel and libevent2.x packages manually in Cygwin ? 

Himadree Shekhar

unread,
Sep 29, 2013, 6:37:48 AM9/29/13
to turn-server-project...@googlegroups.com
Mr Oleg ,
libevent packages are included in Cygwin ports.So Should i install cygwin ports with cygwin  to get  libevent packages installed?

Himadree Shekhar

unread,
Sep 29, 2013, 2:06:42 PM9/29/13
to turn-server-project...@googlegroups.com
Mr. Oleg. I visit the rfc5766 turn-server download page. sort of confuse.What is the latest turn-server version that support cygwin windows.Is it turnserver-2.6.4.1-binary-linux-wheezy-ubuntu-mint-x86-32bits.tar.gz OR turnserver-2.6.4.1.tar.gz ?

Oleg Moskalenko

unread,
Sep 29, 2013, 2:19:16 PM9/29/13
to turn-server-project...@googlegroups.com
Yes, Cygwin ports is the way to go. Install them and take libevent and libevent-dev from the ports collection.

Oleg

Oleg Moskalenko

unread,
Sep 29, 2013, 2:21:15 PM9/29/13
to turn-server-project...@googlegroups.com
The first image is only for debian linuxes.

Cygwin is supported in builds with name:

turnserver-<version>.tar.gz

So you need the second tarball.

Regards,
Oleg

Himadree Shekhar

unread,
Sep 29, 2013, 2:53:36 PM9/29/13
to turn-server-project...@googlegroups.com
Thank you so much Oleg for your reply,

This time i follow all of suggestions and it goes error-less installation.I included all the packages [e.g: opessl-devel,openssl, libevent2 libevent-devel etc via cygwin port repository ].Now Again i started to make my public ip and port 3478 as a turn-server relay.Here i found some warnings!:


$  turnserver -c /usr/local/etc/turnserver.conf.default -b /usr/local/etc/turnuserdb.conf.default -z -L 27.177.187.35 -p 3478
1380479974: RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
1380479974: version Citrix-2.6.4.1 'Harding Grim'
1380479974: =====================================================
1380479974: Multithreading supported
1380479974: TLS supported
1380479974: DTLS supported
1380479974: Multithreaded relay supported
1380479974: Redis is not supported
1380479974: PostgreSQL is not supported
1380479974: MySQL is not supported
1380479974: OpenSSL multithreading supported
1380479974: OpenSSL version: fresh enough
1380479974: =====================================================
1380479974: Listener address to use: 27.177.187.35
1380479974: WARNING: cannot find certificate file: turn_server_cert.pem (1)
1380479974: WARNING: cannot start TLS and DTLS listeners because certificate file is not set properly
1380479974: WARNING: cannot find private key file: turn_server_pkey.pem (1)
1380479974: WARNING: cannot start TLS and DTLS listeners because private key file is not set properly
1380479974: Relay address to use: 27.177.187.35
1380479974: pid file created: /var/run/turnserver.pid
1380479974: IO method (main listener thread): poll
1380479974: IPv4: On this platform, I am using alternative behavior of TTL according to RFC 5766.
1380479974: IPv6: On this platform, I am using alternative behavior of TTL (HOPLIMIT) according to RFC 6156.
1380479974: IPv4: On this platform, I am using alternative behavior of TOS according to RFC 5766.
1380479974: IPv6: On this platform, I am using alternative behavior of TRAFFIC CLASS according to RFC 6156.
1380479974: WARNING: I cannot support STUN CHANGE_REQUEST functionality because only one IP address is provided
1380479974: IO method (udp listener/relay thread): poll
1380479974: IO method: poll
1380479974: IO method (nonudp relay thread): poll
1380479974: IO method (nonudp relay thread): poll
1380479974: IO method (auth thread): poll

So How can i get rid of these warnings.Is it still ok for the turn-server setup to relay with my ip for webRTC  clients?

Oleg Moskalenko

unread,
Sep 29, 2013, 3:12:19 PM9/29/13
to turn-server-project...@googlegroups.com


On Sunday, September 29, 2013 11:53:36 AM UTC-7, Himadree Shekhar wrote:

1380479974: WARNING: cannot find certificate file: turn_server_cert.pem (1)
1380479974: WARNING: cannot start TLS and DTLS listeners because certificate file is not set properly
1380479974: WARNING: cannot find private key file: turn_server_pkey.pem (1)
1380479974: WARNING: cannot start TLS and DTLS listeners because private key file is not set properly

You can ignore these warnings if you are not using TLS with TURN. If you do need TLS, then you have to set OpenSSL certificate and key file for the turnserver (see the turnserver options).
 

1380479974: WARNING: I cannot support STUN CHANGE_REQUEST functionality because only one IP address is provided


This is for NAT type discovery with advanced STUN procedures. If you do not use it then you can ignore it.

Regards,
Oleg
 

Himadree Shekhar

unread,
Oct 1, 2013, 5:09:19 PM10/1/13
to turn-server-project...@googlegroups.com
Hi Mr. Oleg,

with your helpful suggestions i am finally able to install rfc5766 turn server on my pc.I also run few test mentioned in the install fill and all test results were without errors.But these test are all shell based in same pc.I want to do communicate this turn server via web browser usint websocket or webrtc from different pc in different network.I also saw the turn-extra docs about REST API with WebRTC.
So my question is can other clients such as webRTC or Websocktes (not just normal shells) connect to my turn-server from internet? and to do so What configurations i must ensure about turn-server?

For instance, in typical wamp/xampp server is alive because Apache is turn on and it has its own local directory [htdocs/www] to store html,java-script files.
Please suggest me.  

Oleg Moskalenko

unread,
Oct 1, 2013, 5:19:53 PM10/1/13
to Himadree Shekhar, turn-server-project...@googlegroups.com
On Tue, Oct 1, 2013 at 2:09 PM, Himadree Shekhar <himra...@gmail.com> wrote:

So my question is can other clients such as webRTC or Websocktes (not just normal shells) connect to my turn-server from internet?

Yes, absolutely.
 
and to do so What configurations i must ensure about turn-server?

You have to provide a configuration that reflects your network topology and your goals. Look into the WebRTC TURN configuration links in the project front page. Read them and create your own configuration, accordingly.
 

For instance, in typical wamp/xampp server is alive because Apache is turn on and it has its own local directory [htdocs/www] to store html,java-script files.

The TURN server is an independent tool and it has no dependencies on other tools (like Apache). You have to supply your own configuration.
 

Oleg

Himadree Shekhar

unread,
Nov 28, 2013, 11:23:52 AM11/28/13
to turn-server-project...@googlegroups.com, Himadree Shekhar
Dear Oleg,
I am stuck with connecting the turn server with webRTC.While i try to install the turnserver in cygwin i get this output:
 
$ turnserver -c /usr/local/etc/turnserver.conf.default -b /usr/local/etc/turnuserdb.conf.default -z -L 27.147.187.35 -p 3478 --no-tls --no-dtls -no-stun
1385654964: RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
1385654964: version Citrix-2.6.4.1 'Harding Grim'
1385654964: =====================================================
1385654964: Multithreading supported
1385654964: TLS supported
1385654964: DTLS supported
1385654964: Multithreaded relay supported
1385654964: Redis is not supported
1385654964: PostgreSQL is not supported
1385654964: MySQL is not supported
1385654964: OpenSSL multithreading supported
1385654964: OpenSSL version: fresh enough
1385654964: =====================================================
1385654964: Listener address to use: 27.147.187.35
1385654965: Relay address to use: 27.147.187.35

But it is not communicating with webRTC codes in my xampp server.Though its works fine with google server.In webRTC , creating RTCPeerconnection i did this below:

var servers = {"iceServers": [{"url":"turn:27.147.187.35:3478"}]};
 window.localPeerConnection = new webkitRTCPeerConnection(servers);

But this Turn server gives no response!!!

Please suggest me if you know something.

Does it require REST APIs?
please reply.

Oleg Moskalenko

unread,
Nov 28, 2013, 1:05:25 PM11/28/13
to turn-server-project...@googlegroups.com, Himadree Shekhar
WebRTC requires authorization. It will not without long-term authentication mechanism engaged. You are running the TURN server in anonymous mode, and this is why it is not working.

Oleg

Himadree Shekhar

unread,
Nov 28, 2013, 7:08:01 PM11/28/13
to turn-server-project...@googlegroups.com, Himadree Shekhar
Dear Oleg,
Thanks for ur reply.As you suggested,  i generate key using turnadmin and store it in turnuserdb.conf file.I ran the turn given below:

$ turnserver -v -L 27.147.187.35  -c /turnserver-2.6.4.1/examples/etc/turnserver.conf  -f -r -a -b /turnserver-.6.4.1/examples/etc/turnuserdb.conf  --no-tls --   no-dtls
1385681385: RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
1385681385: version Citrix-2.6.4.1 'Harding Grim'
1385681385: =====================================================
1385681385: Multithreading supported
1385681385: TLS supported
1385681385: DTLS supported
1385681385: Multithreaded relay supported
1385681385: Redis is not supported
1385681385: PostgreSQL is not supported
1385681385: MySQL is not supported
1385681385: OpenSSL multithreading supported
1385681385: OpenSSL version: fresh enough
1385681385: =====================================================
1385681385: Listener address to use: 27.147.187.35
1385681385: Relay address to use: 27.147.187.35
1385681385: Listener address to use: 27.147.187.35
1385681385: pid file created: /var/run/turnserver.pid
1385681385: IO method (main listener thread): poll
1385681385: IPv4: On this platform, I am using alternative behavior of TTL according to RFC 5766.
1385681385: IPv6: On this platform, I am using alternative behavior of TTL (HOPLIMIT) according to RFC 6156.
1385681385: IPv4: On this platform, I am using alternative behavior of TOS according to RFC 5766.
1385681385: IPv6: On this platform, I am using alternative behavior of TRAFFIC CLASS according to RFC 6156.
1385681385: IO method (udp listener/relay thread): poll
1385681385: IO method (udp listener/relay thread): poll
1385681385: IO method (udp listener/relay thread): poll
1385681385: IO method (udp listener/relay thread): poll
1385681385: IO method: poll
1385681385: IPv4. UDP listener opened on : 27.147.187.35:3478
1385681385: IO method: poll
1385681385: IPv4. UDP listener opened on : 27.147.187.35:3479
bind: Address already in use
1385681385: ERROR: (src/apps/relay/tls_listener.c:create_server_listener:141) Tryng to bind fd 26 to <27.147.187.35:3478>: errno=112
Cannot bind local socket to addr: Address already in use
1385681385: Cannot bind TCP/TLS listener socket to addr 27.147.187.35:3478
bind: Address already in use
1385681385: ERROR: (src/apps/relay/tls_listener.c:create_server_listener:141) Trying to bind fd 26 to <27.147.187.35:3479>: errno=112
Cannot bind local socket to addr: Address already in use
1385681385: Cannot bind TCP/TLS listener socket to addr 27.147.187.35:3479
1385681385: IO method: poll
1385681385: IPv4. UDP listener opened on : 27.147.187.35:3478
1385681385: IO method: poll
1385681385: IPv4. UDP listener opened on : 27.147.187.35:3479
bind: Address already in use
1385681385: ERROR: (src/apps/relay/tls_listener.c:create_server_listener:141) Tr             ying to bind fd 28 to <27.147.187.35:3478>: errno=112
Cannot bind local socket to addr: Address already in use
1385681385: Cannot bind TCP/TLS listener socket to addr 27.147.187.35:3478
bind: Address already in use
1385681385: ERROR: (src/apps/relay/tls_listener.c:create_server_listener:141) Tr             ying to bind fd 28 to <27.147.187.35:3479>: errno=112
Cannot bind local socket to addr: Address already in use
1385681385: Cannot bind TCP/TLS listener socket to addr 27.147.187.35:3479
1385681385: IO method (nonudp relay thread): poll
1385681385: IO method (nonudp relay thread): poll
1385681385: IO method (auth thread): poll

according to the WEBRTC USAGE guide line i used  [ -a, -r, -f,-v ]
i use this webRTC code:
var servers = {"iceServers": [{"url":"turn:hima...@27.147.187.35:3478", "credential":"0x246ce7be3c79af696b9ae349a7581d65"}]};  
  window.localPeerConnection = new webkitRTCPeerConnection(servers,{optional: RtpDataChannels: true}]});
  
But Still I don't see any response from the Turnserver !

Did i need to implement Database for long-term authentication ?
Another thing : how to request the turn server, is that  using web-browser or web-server?
Please Reply.........

Oleg Moskalenko

unread,
Nov 28, 2013, 7:15:19 PM11/28/13
to turn-server-project...@googlegroups.com, Himadree Shekhar
Read the log output: it is saying that somebody else already is occupying the ports 3478 and 3479. I suppose that you already have another TURN server instance running on the system. Shutdown everything and start your TURN server.

If you need more then several users then you have to set the database. With several users, you are OK with the users file.

Web browser accesses the TURN server.

Oleg

Himadree Shekhar

unread,
Nov 29, 2013, 4:23:26 AM11/29/13
to turn-server-project...@googlegroups.com, Himadree Shekhar
Dear Oleg,
Thank you so much for your helpful replies.This time end all the processes to free the ports and start the turnserver.I got this ouput below:
himadree@himadree-PC ~
$ turnserver -f -L 27.147.187.35 -p 3478 -c /turnserver-2.6.4.1/examples/etc/turnserver.conf  -a -b /turnserver-2.6.4.1/examples/etc/turnuserdb.conf --no-tls --no-dtls
1385715377: RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
1385715377: version Citrix-2.6.4.1 'Harding Grim'
1385715377: =====================================================
1385715377: Multithreading supported
1385715377: TLS supported
1385715377: DTLS supported
1385715377: Multithreaded relay supported
1385715377: Redis is not supported
1385715377: PostgreSQL is not supported
1385715377: MySQL is not supported
1385715377: OpenSSL multithreading supported
1385715377: OpenSSL version: fresh enough
1385715377: =====================================================
1385715377: Listener address to use: 27.147.187.35
1385715377: Relay address to use: 27.147.187.35
1385715377: Listener address to use: 27.147.187.35
1385715377: pid file created: /var/run/turnserver.pid
1385715377: IO method (main listener thread): poll
1385715377: IPv4: On this platform, I am using alternative behavior of TTL according to RFC 5766.
1385715377: IPv6: On this platform, I am using alternative behavior of TTL (HOPLIMIT) according to RFC 6156.
1385715377: IPv4: On this platform, I am using alternative behavior of TOS according to RFC 5766.
1385715377: IPv6: On this platform, I am using alternative behavior of TRAFFIC CLASS according to RFC 6156.
1385715377: IO method (udp listener/relay thread): poll
1385715377: IO method (udp listener/relay thread): poll
1385715377: IO method (udp listener/relay thread): poll
1385715377: IO method (udp listener/relay thread): poll
1385715377: IO method: poll
1385715377: IO method: poll
1385715377: IO method: poll
1385715377: IO method: poll
bind: Address already in use
1385715377: ERROR: (src/apps/relay/tls_listener.c:create_server_listener:141) Trying to bind fd 30 to <27.147.187.35:3478>: errno=112
Cannot bind local socket to addr: Address already in use
1385715377: Cannot bind TCP/TLS listener socket to addr 27.147.187.35:3478
bind: Address already in use
1385715377: ERROR: (src/apps/relay/tls_listener.c:create_server_listener:141) Trying to bind fd 30 to <27.147.187.35:3479>: errno=112
Cannot bind local socket to addr: Address already in use
1385715377: Cannot bind TCP/TLS listener socket to addr 27.147.187.35:3479
1385715377: IO method (nonudp relay thread): poll
1385715377: IO method (nonudp relay thread): poll
1385715377: IO method (auth thread): poll
1385715388: ERROR: check_stun_auth: user himadree credentials are incorrect
1385715388: ERROR: check_stun_auth: user himadree credentials are incorrect
1385715407: ERROR: check_stun_auth: user himadree credentials are incorrect
1385715415: ERROR: check_stun_auth: user himadree credentials are incorrect
1385715415: ERROR: check_stun_auth: user himadree credentials are incorrect
1385716192: ERROR: check_stun_auth: user himadree credentials are incorrect
1385716206: ERROR: check_stun_auth: user himadree credentials are incorrect

I also did this code on webRTC:
  var servers = {
    "iceServers": [{"url":"turn:hima...@27.147.187.35:3478", "credential":"0x246ce7be3c79af696b9ae349a7581d65"}]
 }
;  
  window.localPeerConnection = new webkitRTCPeerConnection(servers,{optional: [{RtpDataChannels: true}]});

Amazingly this time i took 7 attempts to start connection and finally atleast the turnserver gives 7 error response.So i guess turnserver is not dead.
I don't have a 2nd public ip to make a stun.so simply i want to avoid that and want to run only as trun server.

So now what is the problem?
Why showing? : check_stun_auth: user himadree credentials are incorrect

is it nessesary to use stun.How to stop  check_stun_auth ?

please reply...
1385681385: ERROR: (src/apps/relay/tls_listener.c:create_server_listener:141) Trying to bind fd 28 to <27.147.187.35:3478>: errno=112
Cannot bind local socket to addr: Address already in use
1385681385: Cannot bind TCP/TLS listener socket to addr 27.147.187.35:3478
bind: Address already in use
1385681385: ERROR: (src/apps/relay/tls_listener.c:create_server_listener:141) Trying to bind fd 28 to <27.147.187.35:3479>: errno=112

Oleg Moskalenko

unread,
Nov 29, 2013, 4:43:14 AM11/29/13
to turn-server-project...@googlegroups.com, Himadree Shekhar
I still see "address already in use" error in your log. I do not know why you have it. That's not good, and that's not normal.

Try to upgrade to the latest version.

You have check_stun_auth error because you did not set the correct user credentials. You have to set username, realm, and password (key, generated over the values of username, realm and password). How to do that described in the docs.

Regards,
Oleg

Himadree Shekhar

unread,
Nov 29, 2013, 1:11:28 PM11/29/13
to turn-server-project...@googlegroups.com
Dear Oleg,

I did upgrade and installed the new turnserver-3.0.1.2.After that i edit the long-term credentials using command bellow:

himadree@himadree-PC ~
$ turnadmin -k -u himadree -r himadree.org -p youhavetoberealistic                                                      0x246ce7be3c79af696b9ae349a7581d65

himadree@himadree-PC ~
$ turnadmin -a -b /turnserver-3.0.1.2/examples/etc/turnuserdb.conf -u himadree -r himadree.org -p youhavetoberealistic

After storing this credentials with the key value, i edit the webRTC code bellow:  

var servers = {"iceServers": [{"url":"turn:hima...@27.147.187.35", "credential":"youhavetoberealistic"}]};  
window.localPeerConnection = new webkitRTCPeerConnection(servers,{optional: [{RtpDataChannels: true}]});

So here i used the open password.After that i run the turn server and get the output bellow:


himadree@himadree-PC ~
$ turnserver -f -L 27.147.187.35 -c /turnserver-3.0.1.2/examples/etc/turnserver.conf  -a -b /turnserver-3.0.1.2/examples/etc/turnuserdb.conf -r himadree.org --no-tls --no-dtls
0: RFC 3489/5389/5766/5780/6062/6156 STUN/TURN Server
0: version Citrix-3.0.1.2 'Practical Frost'
0:
==== Show them the instruments, Practical Frost: ====

0: Multithreading supported
0: TLS supported
0: DTLS supported
0: Multithreaded relay supported
0: Redis is not supported
0: PostgreSQL is not supported
0: MySQL is not supported
0: OpenSSL multithreading supported
0: OpenSSL version: fresh enough
0: TURN Network Engine version: 2.5
0:
=====================================================

0: Listener address to use: 27.147.187.35
0: Relay address to use: 27.147.187.35
0: pid file created: /var/run/turnserver.pid
1: IO method (main listener thread): poll
1: IPv4: On this platform, I am using alternative behavior of TTL according to RFC 5766.
1: IPv6: On this platform, I am using alternative behavior of TTL (HOPLIMIT) according to RFC 6156.
1: IPv4: On this platform, I am using alternative behavior of TOS according to RFC 5766.
1: IPv6: On this platform, I am using alternative behavior of TRAFFIC CLASS according to RFC 6156.
1: WARNING: I cannot support STUN CHANGE_REQUEST functionality because only one IP address is provided
1: IO method (general relay thread): poll
1: turn server id=0 created
1: IO method (general relay thread): poll
1: turn server id=1 created
1: IO method (udp listener/relay thread): poll
1: turn server id=65535 created
1: IO method (auth thread): poll

so whenever i try to connect  now this time the turn server gives No response !
 But strangely if i give the wrong credential then the turn gives back an Error Response!

What else i need to able to see that the sent data is passing via the the turn server ?

Thanks Oleg

Oleg Moskalenko

unread,
Nov 29, 2013, 2:21:01 PM11/29/13
to Himadree Shekhar, turn-server-project...@googlegroups.com
Start the turnserver with -v option - then you will see some log output.

Oleg


--
You received this message because you are subscribed to the Google Groups "TURN Server project rfc5766-turn-server" group.
To unsubscribe from this group and stop receiving emails from it, send an email to turn-server-project-rfc57...@googlegroups.com.
To post to this group, send email to turn-server-project...@googlegroups.com.
Visit this group at http://groups.google.com/group/turn-server-project-rfc5766-turn-server.
For more options, visit https://groups.google.com/groups/opt_out.

Message has been deleted

Susmita Brahmachari

unread,
Nov 20, 2015, 1:19:06 AM11/20/15
to TURN Server (Open-Source project)


On Tuesday, September 24, 2013 at 5:59:38 AM UTC+5:30, Himadree Shekhar wrote:
Dear group members,

I am a very beginner in using rfc5766 turn server in windows.i have cygwin bt i didnot know how to configure turn server using cygwin.pls help me. my email address is-
Reply all
Reply to author
Forward
0 new messages