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. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice
Dismiss Notice
Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.

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:
    150
    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