WEBRTC needs, configure its own Turn/stun service

Source: Internet
Author: User

1, server environment Ubunutu 16.04LTS;

2, the installation needs to rely on

sudo apt-get-y install SQLite libsqlite3-dev libevent-dev Libssl-dev

3. Download Turnserver Source code

wget http://turnserver.open-sys.org/downloads/v4.5.0.7/turnserver-4.5.0.7.tar.gz

4, Tar-xvzf turnserver-4.5.0.7.tar.gz

5. CD turnserver-4.5.0.7

6,./configure

7. Make

8. Sudo make install

9, sudo OpenSSL req-x509-newkey rsa:2048-keyout/usr/local/etc/turn_server_pkey.pem-out/usr/local/etc/turn_server_c Ert.pem-days 99999-nodes

10, Cd/usr/local/etc

11, sudo cp-r turnserver.conf.default turnserver.conf

12. Edit turnserver.conf, insert:

Cert=/usr/local/etc/turn_server_cert.pem

Pkey=/usr/local/etc/turn_server_pkey.pem

13, sudo turnadmin-a-u mec33-r shenzhen-p m123456

14, Turnserver-l 103.45.19.179-o-a-f-R Shenzhen

15. https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/Test

16. Test results



Turnserver 103.45.19.179:3478 Construction completed.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.