Search Unity

Third Party how do I make mirror work cross computers?

Discussion in 'Multiplayer' started by Lenticularic, Jun 17, 2021.

  1. Lenticularic

    Lenticularic

    Joined:
    Nov 16, 2020
    Posts:
    46
    how do I make mirror work cross computers? can't seem to find how to do it

    the multiplayer works when it's on 1 computer
    but not when it's on multiple computers
     
    Yadigarli likes this.
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Should be the same, but instead of 127.0.0.1 or localhost you use the IP address of the computer acting as the host/server from the clients. The trickier part is now you're involving software firewalls which need to allow the host/server to expose the port externally, and if the clients aren't on the same network you may need to do configuration on the router for remote access to interweb folks. But that kind of IT related stuff isn't really a part of developing the networking in the game itself.
     
  3. Lenticularic

    Lenticularic

    Joined:
    Nov 16, 2020
    Posts:
    46
    thank you so much, it worked!