Multi-player Plugin - What is the "Add ICE Server"

Discussion and feedback on Construct 2

Post » Fri Mar 28, 2014 12:05 am

Well my subject asks the question. I'm working on my game, but I'm wondering what this feature is and if Add ICE server could help me with my project. Not knowing what this does doesn't really help that much. So if anyone knows how ICE works in relation to the plugin that would be great.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013

Post » Fri Mar 28, 2014 1:43 pm

ICE stands for Interactive Connectivity Establishment. They are the servers that help peers connect to each other even if they are behind NAT. These include STUN servers (which try to connect peers directly), and TURN servers (which if peers cannot connect directly, will act as a relay forwarding data between them).

The Multiplayer plugin uses a default list of public STUN servers hosted by Google and Mozilla. You could add your own STUN server, but I don't think there's much point, because the public servers do a good job already.

The most interesting case is to add your own TURN server. According to stats on our signalling server, about 10% of the time peers cannot connect directly due to NAT restrictions. These peers will simply fail to connect because there are no default TURN servers. If you add your own TURN servers then these peers will be able to connect still. The problem is this can degrade the connection quality, since the latency, packet loss etc. will accumulate since data must first go to the TURN server, then be relayed on to another peer. Also this makes TURN servers expensive to run, because you have to pay for the bandwidth of all the game data that passes through it, whereas normal direct peer connections run through their own ISPs and cost you nothing. Still, the option to add your own TURN server is there if you want to.
Scirra Founder
B
387
S
230
G
87
Posts: 24,249
Reputation: 192,240

Post » Fri Mar 28, 2014 2:42 pm

That's a well thought out answer. I was just going to say its a lot like a NICE server, except its really COOL.
Image ImageImage
B
168
S
50
G
163
Posts: 8,221
Reputation: 105,061

Post » Sat Mar 29, 2014 4:37 pm

Thanks for the info. I appreciate that :)
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,013


Return to Construct 2 General

Who is online

Users browsing this forum: Litoghvgvgv, tarek2, Yahoo [Bot] and 3 guests