Search Unity

Cant Connect to my Server (Dedicated Server Ubuntu)

Discussion in 'Netcode for GameObjects' started by Alpha7Wolf, Apr 9, 2022.

  1. Alpha7Wolf

    Alpha7Wolf

    Joined:
    Oct 20, 2016
    Posts:
    6
    Hello guys,

    I have a question; I made a simple multiplayer game which you still can’t call it a game since its just network movement. And I used MLAPI (netcode for game Objects). Everything is fine when I test it locally.

    But when I deploy a server build on my Linux cloud it can’t connect and I really don’t know why because:

    -I make a simple solution like chat messaging using unity LLAPI(Transport) and I replace it on the server and it works fine on same port (which means it’s not servers’ problem)

    -And I even thought I have to make a client build to connect but still nothing happened neither in my pc or my phone

    So, is there something I have to do in order to make server build?

    this is my network manager
    Inspect.PNG

    and this is my build setting
    build.PNG
     
    pblpbl likes this.
  2. pblpbl

    pblpbl

    Joined:
    Sep 1, 2019
    Posts:
    15
    Has anyone fixed this yet? I'm also facing this problem.
     
    Last edited: Jun 9, 2022
    Alpha7Wolf likes this.
  3. itisMarcii_

    itisMarcii_

    Joined:
    Apr 5, 2022
    Posts:
    111
  4. Alpha7Wolf

    Alpha7Wolf

    Joined:
    Oct 20, 2016
    Posts:
    6
    So I asked it on Netcode discord and find the answer
    for Server Listen Address it should be 0.0.0.0 so it can listens on any connected interface