Search Unity

NetworkDiscovery working on Android tablet but not on Android phone and iPhone

Discussion in 'Multiplayer' started by Bunkerbewohner, Jun 9, 2017.

  1. Bunkerbewohner

    Bunkerbewohner

    Joined:
    May 20, 2013
    Posts:
    3
    Hi,

    I'm using the NetworkDiscovery and NetworkManager for a simple multiplayer game.
    The network discovery works in the LAN with computers (as long as the firewall doesn't prevent it).

    On my Nexus 7 Android tablet I receive UDP packets and can join the game running on my PC.
    Running the same game on my Moto G2 (same Android version 6.0.1) the client doesn't
    seem to receive any UDP packets. No errors or exceptions.

    Testing with my iPhone it also doesn't work, i.e. NetworkDiscovery.OnReceivedBroadcast is never called.
    If I use a separate UDP scanner app I can see the broadcast packackages incoming though.
    So it seems only the Unity app is not receiving them.

    Any ideas what could be the problem?
    I'm using Unity 2017.1.0b7.

    P.S.

    Joining the games from both phones work when I enter the server IP manually. It's just the they don't receive the UDP broadcast.
     
  2. nukeustwo

    nukeustwo

    Joined:
    Sep 4, 2015
    Posts:
    51
    Did you find a solution to this for iOS? I'm running into the same problem where NetworkDiscovery works on Android but not on iOS
     
  3. nukeustwo

    nukeustwo

    Joined:
    Sep 4, 2015
    Posts:
    51
    Ah so basically for me (on Windows which was the client) I enabled the udp ports in windows firewall, and also allowed the unity application for public domain