I decided to create my own STUN server to use it together with the following JS library https://simplewebrtc.com.
I decided to use this: http://www.stunprotocol.org/
I have followed the instructions and it seems like the server is running.
The command sudo lsof -i:3478
(3478 is the default port) outputs this:
stunserve 12856 user 3u IPv4 232305 0t0 UDP *:3478
I have also modified the JS library to use my server according to this instructions: https://github.com/andyet/SimpleWebRTC (peerConnectionconfig
).
peerConnectionConfig:{iceServers:[{urls:"stun:myServerHost:3478"}]}
But when I use tcpdump to capture the traffic on the server nothing is captured like the server is not used. Which server is then used if this one is configured?