Giter Site home page Giter Site logo

mamena2020 / zomie-turn-server Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 1.0 294 KB

TURN Server as relays media for zomie app (online meeting app)

License: MIT License

Shell 1.34% JavaScript 66.80% HTML 31.86%
media-relay meeting-application nodejs nodejs-server realtime-application turn-server webrtc

zomie-turn-server's Introduction

Zomie - TURN Server

TURN (Traversal Using Relays around NAT) Server handling as relays media, means allows clients(zomie app) to send and receive data to Media Server through an intermediary server(TURN server). Server running on nodejs, this server work as a backup if STUN Server won't work because client device behind of symmetric NAT.

Basic usage

  • config
    • create your .env from .env.example, & fill the credential
       TURN_PORT=3478
       TURN_USERNAME=zomie
       TURN_PASSWORD=password
    
  • install
    • npm install
  • dev
    • npm run dev
    • nodemon server
  • prod
    • npm run start
    • node server

Test

After running turn server then you can test TURN server here test.

Or You can run test on __test/index.html.

Note

After running this server don't forget to setup configuration of zomie app & Media Server

  • Client (zomie app)

    • dotenv file
     ALLOW_TURN_SERVER = "true"
     TURN_SERVER_HOST = "turn:ip:port" #example: "turn:192.168.1.9:3478"
     TURN_SERVER_USERNAME = "zomie"
     TURN_SERVER_PASSWORD = "password"
    
  • Media Server

    • .env file
     ALLOW_TURN_SERVER = "true"
     TURN_SERVER_HOST = "turn:ip:port" #example: "turn:192.168.1.9:3478"
     TURN_SERVER_USERNAME = "zomie"
     TURN_SERVER_PASSWORD = "password"
    
  • Port port for TURN

      3478 TCP & UDP
      49152โ€“65535 UDP
    

References

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.