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

[MLAPI] Can I connect to a server in Play Mode?

Discussion in 'Netcode for GameObjects' started by ZakareyaAlatoli, Apr 25, 2021.

  1. ZakareyaAlatoli

    ZakareyaAlatoli

    Joined:
    Aug 29, 2020
    Posts:
    4
    I'm doing some iterative testing with MLAPI for an online multiplayer game. So far, I can only connect to a host in the built executable (when both the host and client are running the executable). I'm wondering if it's possible to connect to a host in Play Mode in the Unity Editor, where both the host and client are running in Play Mode. So far, I haven't had any luck. I'm making sure the server IP adress is correct, but the client won't connect. I'm using the Collaborate feature to make sure the projects are identical on both machines.

    I want to do this to make testing easier, so I won't have to rebuild the entire project and download it onto another machine whenever I want to test the online features.
     
    IAWUnity and jdrandir like this.