Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

iPhone fails to connect to PC server on a LAN - but Android works

Discussion in 'Multiplayer' started by raypatrick, Jan 3, 2019.

  1. raypatrick

    raypatrick

    Joined:
    Oct 23, 2018
    Posts:
    3
    Hey all!
    I'm working on a client/server type game that is running on WiFi LAN. The server is a PC and the clients are iPhone and Android devices - all are on the same subnet - with IPs given out by DHCP (i.e, 192.168.0.x).

    The code is written using UnityEngine.Networking.NetworkTransport class. All IPs are hard coded, so there is (currently) no network discovery step.

    The android client works fine - it reliably connects to the server and all is well.
    The iPhone client fails to connect - it looks like the server never even gets the connection attempt. Unfortunately, I don't have any visibility into what's going on in the iPhone (I don't have a mac - the iOS build was built using unity's cloud build service). The game *works* on the iPhone locally - its just the net connection that is failing.

    Is there anything special I need to do to enable out going connections on the iPhone?