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.
  2. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Question 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
     
  2. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,825
    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!