This guide is designed to help you test your STUN/TURN connectivity using Pion/TURN.
Note: This turn server is not designed for production. Using this outside of a testing scenario can result in poor performance.
This guide is broken up into the following steps:
-
Setting up Pion/TURN Server on your cloud machine
-
Run a ICE Trickle test using your fresh new Pion/TURN server details
-
Ping your Pion/TURN using the Pion/TURN client ping utility
-
Log into your cloud Instance
-
Download and unzip your relevant OS folder from here
-
Open cmd in directory and run:
turn-server-simple.exe -public-ip $INSTANCE_PUBLIC_IP -users username=password
-
To set up ice trickle test for new custom turn server, head to: https://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/
-
Click Remove server to clear the current default
-
Enter the following into the relevant fields:
- Enter turn:publicip:port in the TURN URI category
- Enter "username" in username field
- Enter "password" in password field
-
Click add server.
-
Click "Gather candidates"
-
Successful results will show "Relay candidates"
-
Unzip the same files from the instance on your local machine
-
Open cmd in the directory
-
Run the following command:
turn-client-udp.exe -host $INSTANCE_PUBLIC_IP -user=username=password -ping
- Successful ping will show standard ping output (e.g. Reply from IP)
For more details about additional commands you can run, please see the provider page here: