[url=]up vote[/url]0[url=]down vote[/url]favorite | I decided to create my own STUN server to use it together with the following JS libraryhttps://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?
| ||||
[url=]add a comment[/url] |
[url=]up vote[/url]1[url=]down vote[/url] | Actually the configuration is like this: { iceServers: [ { "url": "stun:your.stun.server" , "username": "user" , "credential": "password" }]}Credentials are optional. And you can usehttps://webrtc.github.io/samples/src/content/peerconnection/trickle-ice/ to test your stun server.
| ||||||||||||||||
|
| 欢迎光临 Discuz! Board (http://47.89.242.157:9000/bbs/discuz/) | Powered by Discuz! X3.2 |