Multiplayer connectivity problems

Discussion and feedback on Construct 2

Post » Sun Aug 03, 2014 5:43 pm

@xoros sorry, but I have no idea how to do that stuff at the moment, I'm hoping to learn from you :) I only know C2 side stuff, but would very much like to get my game more stable.
B
28
S
8
G
5
Posts: 429
Reputation: 7,007

Post » Mon Aug 04, 2014 12:52 pm

Oh, the 'Add ICE server' action doesn't support credentials. I'll try get that in for the next build.
Scirra Founder
B
400
S
236
G
89
Posts: 24,546
Reputation: 195,471

Post » Mon Aug 04, 2014 1:41 pm

@Ashley - Thank you!
B
45
S
11
G
4
Posts: 517
Reputation: 7,398

Post » Thu Aug 07, 2014 8:31 am

@Ashley
So, I'm trying to add a TURN server with new credentials options, but with no success. May be I'm doing something wrong, but it's like working with a black box. I installed the TURN server according to the tutorial and it's running. I added it before "Connect to signalling server", but TURN server does not log anything. I also tried to add it after on signalling connected. Could you please provide some information how to properly use it in Construct 2?
B
45
S
11
G
4
Posts: 517
Reputation: 7,398

Post » Thu Aug 07, 2014 8:59 am

Are you sure your TURN server is configured correctly? There is really nothing to it in the multiplayer object, it passes those details straight to WebRTC and that's it.
Scirra Founder
B
400
S
236
G
89
Posts: 24,546
Reputation: 195,471

Post » Thu Aug 07, 2014 9:16 am

Yes, I think it's TURN server configuration issue. I changed the listening port to 80 and it started to log connection attempts, which unfortunately fail.
B
45
S
11
G
4
Posts: 517
Reputation: 7,398

Post » Tue Feb 10, 2015 3:21 pm

@Ashley , @xoros did you manage to make it work ? i having the same issue,

My problem is that i want to open the "chat demo" in a separate machine to work as Host, this "host" is a dedicated server windows machine, with apache, where my "chat demo" is hosted , the problem is when i tried to connected from another machine, it connects but i can't see others peers and eventually i get kicked


i added the Turn server with the multiplayer object, before the multiplayer signal connect action ,

"turn:mydomain.com:port" , in my case i don't have setup any credentials

i setup the server following this tutorial , i installed on a window machine with cygwin, it runs ok,

in this windows server machine i ran the Chat demo (modified to add the TURN ) , in a web browser, so it will served as host (that is my main goal)

in the turnserver.conf:

listening_port = 3478
listening_ip = 192.168.0.1


then i have a NAT from the router to UDP/TCP Port 3478 to 192.168.0.1 ip

in the Chat demo i added it as "turn:mydomain:3478"


nothing work,

then i added manually to c2mp.js where the ICE server are hardcode, as the first one,
var DEFAULT_ICE_SERVER_LIST = [
{ "urls": "turn:mydomain.com:3478" },
{ "urls": "stun:stun.l.google.com:19302" },
{ "urls": "stun:stun1.l.google.com:19302" },
{ "urls": "stun:stun2.l.google.com:19302" },
{ "urls": "stun:stun3.l.google.com:19302" },
{ "urls": "stun:stun4.l.google.com:19302" },
{ "urls": "stun:23.21.150.121" } // mozilla-operated server
];

it worked after serveral F5 in the browser, but just one time, i have managed to get Logs

2852: handle_udp_packet: New UDP endpoint: local addr 192.168.0.1:3478, remote addr REMOTE_IP:59812
2852: session 128000000000000001: user <>: incoming packet BINDING processed, success
2852: handle_udp_packet: New UDP endpoint: local addr 192.168.0.1:3478, remote addr REMOTE_IP:59813
2852: session 128000000000000002: user <>: incoming packet BINDING processed, success


but still, i couldn't see the Host or the others peers
B
4
Posts: 4
Reputation: 232

Post » Tue Feb 10, 2015 5:08 pm

Nope. I haven't manage to fix it. Anyways WebRTC is not supported on iOS. I'm still using socket.io solution by @rexrainbow.
B
45
S
11
G
4
Posts: 517
Reputation: 7,398

Post » Wed Feb 11, 2015 2:21 am

@xoros

I am moving to firebase + parse for multiplayer (network) recently.
B
109
S
27
G
277
Posts: 4,482
Reputation: 154,924

Post » Wed Feb 11, 2015 9:43 am

@rexrainbow, thanks gonna check it out
B
45
S
11
G
4
Posts: 517
Reputation: 7,398

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 5 guests