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

Bug SocketException: Address already in use System

Discussion in 'Editor & General Support' started by mosley0305, Oct 29, 2022.

  1. mosley0305

    mosley0305

    Joined:
    Jan 29, 2019
    Posts:
    3
    Hi,

    I am having some trouble with his when hosting a server and client through using mirror for unity. It only started to happen when I had an update or SDK for android on unity although I could be wrong.
    Nothing has really changed on my part so I am confused as to what is causing it.

    SocketException: Address already in use
    System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) (at <398d6327050c4a25a0d432db4cd6a536>:0)

    That is what I get.

    SocketException: Address already in use
    System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) (at <398d6327050c4a25a0d432db4cd6a536>:0)
    kcp2k.KcpServer.Start (System.UInt16 port) (at Assets/Mirror/Runtime/Transports/KCP/kcp2k/highlevel/KcpServer.cs:141)
    kcp2k.KcpTransport.ServerStart () (at Assets/Mirror/Runtime/Transports/KCP/MirrorTransport/KcpTransport.cs:209)
    Mirror.NetworkServer.Listen (System.Int32 maxConns) (at Assets/Mirror/Runtime/NetworkServer.cs:129)
    Mirror.NetworkManager.SetupServer () (at Assets/Mirror/Runtime/NetworkManager.cs:253)
    Mirror.NetworkManager.StartHost () (at Assets/Mirror/Runtime/NetworkManager.cs:414)
    Mirror.NetworkManagerHUD.StartButtons () (at Assets/Mirror/Runtime/NetworkManagerHUD.cs:63)
    Mirror.NetworkManagerHUD.OnGUI () (at Assets/Mirror/Runtime/NetworkManagerHUD.cs:29)

    And then above is what it tells me broken down but it's meaningless to me who is new to coding etc. Especially as I have done nothing to cause this.
     
  2. mosley0305

    mosley0305

    Joined:
    Jan 29, 2019
    Posts:
    3
    When reinstalling the software it gets stuck on this part.
    Screenshot 2022-10-29 at 20.24.52.png