Multiplayer not working if using mobile network

0 favourites
  • 6 posts
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • So i have tried of couple scenario which work and not work:

    1. Host and player both using Wifi to connect, works can see each other and can join room

    2. Host using wifi, player using mobile network, player can see the room but once joinining, it keep establishing connection until it timed out

    3. Host using wifi, player using mobile network with VPN, same as result as Scenario 1

    So it seems mobile network seems to be buggy, but the other day when we try using Wifi on host and Mobile network on player it works, is there a reason for this or something i am missing?

  • you can'T connect a device on a ipv4 network to a device on a ipv6 network unless you use STUN and TURN servers, I don'T know if it'S a bug or has something to do with ICE or whatever but that'S how it is

  • Welcome to Internet networking. It's complicated. See the multiplayer tutorial which covers this.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Just to chime in with a real-world scenario of networking being a pain.

    As a person who relies on a 4G network for the bulk of my connectivity - the NAT type of a mobile network is often restrictive in general and it's not a Construct issue. For example, if you want to play multiplayer games on the Nintendo Switch you cannot use a 4G mobile network because the NAT type is incompatible.

    Plenty of other AAA games also have warnings about functionality not being quite right if you're using a Strict NAT type as is the case on mobile data - Destiny 2 is a prime example of this.

    A lot of people have complained to the major providers here in the UK at least (particularly those like me who would want to use 4G for their entire home network) but so far they're not interested in changing.

  • Multiplayer works locally only, to the best of my knowledge, it will never work as you are asking it to. (there must be some cross domain CORES type issues or similar, which I could never figure out a work-around)

    Photon has a plugin for C3 that does work and is free for limited use and testing.

    construct.net/en/make-games/addons/534/photon-engine-c3

    photonengine.com

    [The drag drop feature for plugins...whomever came up with that was brilliant. Thanks!]

  • Try strawberrypunch.com with one device on a mobile network and your normal computer,

    to enable online multiplayer functionality click or tap the planet button at the top left,

    and you'll see they connect and can play together!!

    it uses STUN and TURN server. It'S easy enough to get one running, get a 5$ a month droplet on digital ocean and follow a tutorial on how to install some open source STUN/TURN whatever server and you got it !

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)