Search Unity

"Server failed to bind" error with Mac Ventura

Discussion in 'Netcode for GameObjects' started by HugoFortis, Oct 28, 2022.

  1. HugoFortis

    HugoFortis

    Joined:
    Feb 8, 2022
    Posts:
    2
    Hey everyone.
    I just updated my Macbook Pro Max and started receiving the error when initializing the server with server dedicated platform: "Server failed to bind".

    Easy Repro steps:
    1. Install Netcode for a game object with the sample
    2. Run Bootstrap scene
    3. Try to initialize the server
    4. Get an error "Server failed to bind"
    I am using Unity 2021.3.0 but tried 2021.3.8
    Netcode version 1.0.0 or 1.1.0

    It was working fine until the upgrade.
    If I build the version and run it on another mac with Sierra, it works fine. On Ventura, it throws the same error.

    Does anyone found a similar issue?
     
  2. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    Ventura has a system service that's listening on port 7777, which is the port used by default by Netcode for GameObjects. This creates a conflict when Netcode tries to bind its socket. The quickest and easiest fix is to simply change the port to something else (you can do that under the transport component of your network manager).
     
    TheRealMattV and HugoFortis like this.
  3. HugoFortis

    HugoFortis

    Joined:
    Feb 8, 2022
    Posts:
    2