-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to change stun server? #134
Comments
Hi zhiyin-im! I have exactly the same problem. I'm not a JS expert and have spent the last 24 hours trying to find out what I was doing wrong. Now your message gives me a hint that it might not be my fault after all.
When I execute and debug, peerConnectionConfig.iceServers contains the default Chrome STUN server "stun:stun.l.google.com:19302" and no TURN servers. |
the default signaling server on signaling.simplewebrtc.com:8888 might override your STUN/TURN config. There still seems to be a bug though... |
no bug -- just undocumented behaviour. Either run your own https://github.com/andyet/signalmaster |
You hit the nail on the head, fippo. After installing and configuring my private signalling server I can see both stun and turn on the console. Thanks a lot! |
Hi jsgispert, |
@vanney9 did you ever solve that issue? |
@joellusky no, I can not solve it. |
@vanney9 @joellusky
|
@AlphaHinex I am using xirys stun/turn servers, but my app is not working when on separate networks, How do I know which turn server my simplewebrtc is actually using, I mean where do I place my console.log |
@Oluwafemikorede Maybe you can check |
I am also struggling with this problem. Can't force the library to use my STUN server instead of the public one. Is there any way to solve this? |
Did someone manage to make it work with SimpleWebRTC and xirsys ? {
"isDev": true,
"server": {
"port": 8886,
"/* secure */": "/* whether this connects via https */",
"secure": false,
"key": null,
"cert": null,
"password": null
},
"rooms": {
"/* maxClients */": "/* maximum number of clients per room. 0 = no limit */",
"maxClients": 0
},
"stunservers": [
{
"url": "stun:turn02.uswest.xirsys.com"
}
],
"turnservers": [
{
"urls": ["turn:your_turn_server"],
"secret": "turnserversharedsecret",
"expiry": 86400
}
]
} But when I check my xirsys dashboard, I always have "0 STUN connections". Any ideas ? Best, |
@billyshena I can't speak to how xirsys will show you connections, but you should be able to use |
Comment this line :D r.webrtc.config.peerConnectionConfig.iceServers = e, r.emit("stunservers", e) |
@billyshena Yes, I could do it with SimpleWebRTC + Signaling + xirsys. |
still interested help me out SimpleWebRTC + Signaling + xirsys. |
I search "stun" and find google stun server and modified simplewebrtc.bundle.js like this:
peerConnectionConfig: {
// iceServers: [{"url": "stun:stun.l.google.com:19302"}]
iceServers: [{"url": "stun:128.199.x.x:3478"}]
},
and configured rfc5766-turn-server. But the browser console still showed stun:stun.l.google.com:19302
I checked the page source link. I really had changed to my stun server. I'm totally confused.
The text was updated successfully, but these errors were encountered: