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

Has anyone been able to establish a connection with foreign clients?

Discussion in 'Multiplayer' started by Twitwi, Aug 12, 2016.

  1. Twitwi

    Twitwi

    Joined:
    Apr 11, 2012
    Posts:
    22
    So I have reached a point where I got the game networked between a handful clients running locally (on the same machine). However yesterday I tried, for the first time, to test if I could connect with someone on a different IP. I hit connect and nothing happens.

    Additionally I tried compiling Tanks! and running it on a client on a different network, and I was unable to connect to it. I port forwarded 7777, TCP and UDP, didn't change anything. I signed up for the match making service and tried to connect using the match making, but was unable to even see the lobby in the server browser.

    Has anyone of you had success establishing a connection to a client that is not on the same network as yourself? Do I need to take some steps with the Tanks! project in order to make it work?
    Are there any (hardware/network) requirements, that I should know of, to the client and host to make it work?
     
  2. Whippets

    Whippets

    Joined:
    Feb 28, 2013
    Posts:
    1,775
    Using uNet, I had problems when the server and client was on the same machine, but when I moved the server to my remote hosted machine, everything worked perfectly (after making an exception for it in Windows Firewall - which caught me out).
     
  3. DRRosen3

    DRRosen3

    Joined:
    Jan 30, 2014
    Posts:
    683
    Using MatchMaker you have to specify which Unity relay server you want to connect to. For example, if you (the host/server) are in the U.S. and you want players (other clients) to connect to you, then you have to set the Network Manager >>> Network Info >>> MatchMaker Host URI to "us1-mm.unet.unity3d.com".

    If you don't specify the region, then (if I understand it correctly) the Network Manager detects automatically which region each individual client is in and tries to find a connection in that local region.
     
  4. Twitwi

    Twitwi

    Joined:
    Apr 11, 2012
    Posts:
    22
    I finally managed to establish a connection by disabling CRC checks (even though i zipped the exact same files that i was playing).

    So it is not impossible, Huzzar!