Hey Guys,
I'm new to EasyRTC, i tried some demos, and it worked well on my own network.
But if I tried it with some friends we've got only a black screen.
after some research i found out it, it's a NAT/Firewall problem.
So I want to use a TURN Server, I decided
anyfirewall.com.
So I created a
anyfirewall.com account.
And now, I edited my server.js:
// Load required modules
var http = require("http"); // http server core module
var express = require("express"); // web framework external module
var io = require("socket.io"); // web socket external module
var easyrtc = require("easyrtc"); // EasyRTC external module
// Setup and configure Express http server. Expect a subfolder called "static" t
o be the web root.
var httpApp = express();
httpApp.use(express.static(__dirname + "/static/"));
// Start Express http server on port 8080
var webServer = http.createServer(httpApp).listen(8080);
// Start Socket.io so it attaches itself to Express server
var socketServer = io.listen(webServer, {"log level":3});
var myIceServers = [
{
"url":"stun:stun.anyfirewall.com:3478"
},
{
"url":"turn:turn.anyfirewall.com:443",
"username":"flex*****",
"credential":"32M3KsE*****"
},
{
"url":"turn:turn.anyfirewall.com:443?transport=tcp",
"username":"flex*****",
"credential":"32M3KsE*****"
}
];
easyrtc.setOption("appIceServers", myIceServers);
easyrtc.on("getIceConfig", function(connectionObj, callback){
callback(null, myIceServers);
})
// Start EasyRTC server
var rtc = easyrtc.listen(httpApp, socketServer); is something wrong with my server.js file?
I've got at email from
anyfirewall.com with a pw. I used it for the credential variable, is this correct?
Should i do some stuff on
anyfirewall.com or just sign up?
lg Jan