Search Unity

Connect To Dedicated Server

Discussion in 'Netcode for GameObjects' started by VincentSk, Mar 25, 2023.

  1. VincentSk

    VincentSk

    Joined:
    Feb 14, 2018
    Posts:
    11
    Hi guys, I have a headless build on linux server and I run it success. When I connect server from terminal everything still ok. But when I set IP and port to NetworkManager in unity editor client can't connect the server. After some minutes it throw exception "failed to connect server". Do I miss something?
    Can anybody help me this case? Thank youuuuu. server run.jpg client conect.jpg
     
  2. CodeSmile

    CodeSmile

    Joined:
    Apr 10, 2014
    Posts:
    5,969
    Can you ping the IP? Is the port open to incoming traffic on the server side (check firewall/routing)?
     
  3. VincentSk

    VincentSk

    Joined:
    Feb 14, 2018
    Posts:
    11
    Yes, I can ping to that server. Port also open to incoming traffic too. In picture 2 I connect with terminal use IP and port it still ok. But when set IP, port to NetworkManager it can't connect
     
  4. IntoTheSoul

    IntoTheSoul

    Joined:
    Oct 31, 2018
    Posts:
    30
    I have the same problem too. I can ping the server but the network manager cannot.