Skip to content

A NodeJs-based CLI tool to check whether the UDP hole-punching (with Kobiton Data Ceter) is available in the organization's network

License

Notifications You must be signed in to change notification settings

kobiton/webrtc-connectivity-check-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A NodeJS-based CLI client app runs in a computer inside the organization network to verify whether the UDP hole-punching (with Kobiton Data Center) is available

1. Setup

  • The client app will communicate with the server running at Kobiton Data Center. Below is the network requirement for it to work, please make sure they're in allowlist of your firewall
Destination address Application protocol Comment
webrtc-check.kobiton.com:80 HTTP The web service served requests from the client app
webrtc-check.kobiton.com:41234 UDP The UDP destination port that the client app uses to check the outgoing UDP packets
  • Download and install NodeJS version 8.x accordingly with your OS. If you already have NodeJS installed, make sure your NodeJS's version is 8.0 or newer
  • Download the ./index.js to your machine. Let's say it's downloaded at /tmp/ (in macOS) or C:/tmp/ (in Windows)

2. Run the client app

Make sure your computer stays inside the organization network i.e. in the office so that the client app can report correct network condition

  • Open the Terminal app (in MacOS) or Command Prompt (in Windows)
  • Navigate to the directory having the index.js as below
cd /tmp (in MacOS)
C:/tmp (in Windows)
  • Execute the client app as below
node index.js
  • Let it running, observe the result and follow the suggested action on the screen

3. Advanced run

This section is for Kobiton Technical Support staff

The app supports below parameters (with default values) so that we can override on executing if needed

  • SERVER_URL=http://13.213.3.169 : specify the server IP i.e. the apps/server runs there
  • CLIENT_UDP_PORT=41234 : specifiy the port (in UDP) that the server app is listening

About

A NodeJs-based CLI tool to check whether the UDP hole-punching (with Kobiton Data Ceter) is available in the organization's network

Resources

License

Stars

Watchers

Forks