Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Connect to Mirror Network server on Android device from Unity Editor

Discussion in 'Multiplayer' started by Sylvanas, May 15, 2023.

  1. Sylvanas

    Sylvanas

    Joined:
    Jun 9, 2014
    Posts:
    6
    My basic idea is to develop a RPC service to query some runtime information or pull log file from my app for debugging purpose. I resort to Mirror to establish the connection between the Android device and Unity editor window. It works well on my PC where I run the server in Unity and connect to it from editor window. But when I install it on the android device and try to connect to it with specifying the ip address of my phone, it failes to connect. I was assuming if there was some firewall type thing which interferes the connection, anybody can cast some light on it?
     
  2. Sylvanas

    Sylvanas

    Joined:
    Jun 9, 2014
    Posts:
    6
    It turned out to be that I didn't initialise the NetworkManager from Editor Window.