Search Unity

Unity Transport StartServer Question

Discussion in 'Unity Transport' started by haoshangce, Jun 14, 2022.

  1. haoshangce

    haoshangce

    Joined:
    Jun 13, 2018
    Posts:
    12
    only Windows7 could run (I don't have IOS system)
    windowsServer 2012,windowsServer2016,windowsServer2022,centos7.6,centos streaming8,ubuntu20,windows10 can't run StartServer
    error: Server failed to bind
    why?who can tell me how to do?
     
  2. pat_trick

    pat_trick

    Joined:
    May 23, 2016
    Posts:
    27
    We'd need some more details, some of your sample code, something to help us further troubleshoot.
     
  3. simon-lemay-unity

    simon-lemay-unity

    Unity Technologies

    Joined:
    Jul 19, 2021
    Posts:
    441
    Typical reason for a failure to bind is attempting to bind to an address that's not a local address. What's the 'Listen Address' set to? Could you try to set it to 0.0.0.0 (binds to all local addresses)?
     
  4. haoshangce

    haoshangce

    Joined:
    Jun 13, 2018
    Posts:
    12
    0.0.0.0.....I remember that I used 127.0.0.1 . can't use it
     
  5. haoshangce

    haoshangce

    Joined:
    Jun 13, 2018
    Posts:
    12
    0.0.0.0 i forgot I haven't tested 0.0.0.0?I feel I have tested all condition
     
  6. haoshangce

    haoshangce

    Joined:
    Jun 13, 2018
    Posts:
    12
  7. haoshangce

    haoshangce

    Joined:
    Jun 13, 2018
    Posts:
    12
  8. pat_trick

    pat_trick

    Joined:
    May 23, 2016
    Posts:
    27