People could not connect to host

Discussion and feedback on Construct 2

Post » Wed Dec 16, 2015 9:42 pm

I created a multiplayer game based on the guide https://www.scirra.com/tutorials/915/mu ... -time-game. If I connect to a room with a computer that is in the same home network, there is no problem, but when you are trying to connect to it someone from another adresm ip becomes impossible. When the test on the finished template "Multiplayer - Real-time game" have the same problem.
Anyone know how to deal with this problem?

Link to my game: https://googledrive.com/host/0BzKy3gPmY ... index.html
Last edited by Stanik on Sat Dec 19, 2015 1:54 pm, edited 1 time in total.
B
5
S
1
Posts: 5
Reputation: 337

Post » Sat Dec 19, 2015 1:54 pm

I was able to deal with this problem, I used to order a public list of servers STUN and TURN found here https://gist.github.com/yetithefoot/7592580 . It was enough that I added in the file c2mp.js to "var DEFAULT_ICE_SERVER_LIST" other servers STUN and TURN, at the moment it looks like this:
Code: Select all
var DEFAULT_ICE_SERVER_LIST = [
{url:'stun:stun01.sipphone.com'},
{url:'stun:stun.ekiga.net'},
{url:'stun:stun.fwdnet.net'},
{url:'stun:stun.ideasip.com'},
{url:'stun:stun.iptel.org'},
{url:'stun:stun.rixtelecom.se'},
{url:'stun:stun.schlund.de'},
{url:'stun:stun.l.google.com:19302'},
{url:'stun:stun1.l.google.com:19302'},
{url:'stun:stun2.l.google.com:19302'},
{url:'stun:stun3.l.google.com:19302'},
{url:'stun:stun4.l.google.com:19302'},
{url:'stun:stunserver.org'},
{url:'stun:stun.softjoys.com'},
{url:'stun:stun.voiparound.com'},
{url:'stun:stun.voipbuster.com'},
{url:'stun:stun.voipstunt.com'},
{url:'stun:stun.voxgratia.org'},
{url:'stun:stun.xten.com'},
{
url: 'turn:numb.viagenie.ca',
credential: 'muazkh',
username: [email protected]'
},
{
url: 'turn:192.158.29.39:3478?transport=udp',
credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
username: '28224511:1379330808'
},
{
url: 'turn:192.158.29.39:3478?transport=tcp',
credential: 'JZEOEt2V3Qb0y27GRntt2u2PAYA=',
username: '28224511:1379330808'
}
];
B
5
S
1
Posts: 5
Reputation: 337

Post » Sat Dec 26, 2015 12:13 pm

@Stanik

So now you don't have any connecting issues with multiplayer?.

I've seen a couple of posts complaining about not being able to connect if the host and peer are on different carriers, using 2G/3G/4G . Have you encountered the same problem?
B
16
S
4
Posts: 138
Reputation: 1,454


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 2 guests