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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Multiplayer works on single computer but will not work on multiple different computers.

Discussion in 'Multiplayer' started by StephenRJudge27, Dec 3, 2015.

  1. StephenRJudge27

    StephenRJudge27

    Joined:
    Sep 2, 2015
    Posts:
    24
    I know this question has been asked before but I can't seem to find the right solution. I can get my multiplayer game to work on one computer but it will not work across two different computers. I have tried adding the Unet id in the player tab but to no avail. Does anyone know any other common solutions/troubleshoots in order to get this to work?

    Thanks
     
  2. asperatology

    asperatology

    Joined:
    Mar 10, 2015
    Posts:
    981
    Obtain the external IP address, enter the IP address in the built-in NetworkManager script's GUI input field (where it would say "localhost" without quotes in the input field), and click on Start LAN Client to connect to that IP address.

    I got this working with our lab computers just by using What is my IP Address. (http://whatismyipaddress.com/)
     
  3. NitinKool

    NitinKool

    Joined:
    Oct 16, 2015
    Posts:
    5
  4. DRRosen3

    DRRosen3

    Joined:
    Jan 30, 2014
    Posts:
    683
    It shouldn't have anything to do with UNet Id or IP addresses. Especially if you're just trying a simple LAN set up and not using MatchMaking.

    1. Are both computers connected to the same internet source? (LAN)
    2. If not, are you using Match Making?
    3. If you are, make sure you're setting your Program App Id.
    http://docs.unity3d.com/ScriptReference/Networking.Match.NetworkMatch.SetProgramAppID.html
    http://forum.unity3d.com/threads/unet-setprogramappid-in-c-whats-up-with-that.334037/
    4. If you're not...then you need to go back to #1.
     
  5. StephenRJudge27

    StephenRJudge27

    Joined:
    Sep 2, 2015
    Posts:
    24
    Yeah I am using the same LAN internet source, and I tried putting the external IP address I got on that website into the GUI input field in the computer that was trying to connect as a local client and nothing happened.
     
  6. asperatology

    asperatology

    Joined:
    Mar 10, 2015
    Posts:
    981
    Well, I can't give much information, other than the lab computers work fine, or maybe it's because our tech university has awesome network ops. :/
     
  7. teCH_kiNG

    teCH_kiNG

    Joined:
    Jul 30, 2021
    Posts:
    2
    donnt have to brag