Steps to reproduce:
1. Create a new project
2. Install the com.unity.netcode.gameobjects package
3. Import the “Bootstrap” sample
4. Open the “Boostrap” scene
5. Enter Play Mode
6. Press on “Host” in the Game View
7. Edit any script so a domain reload happens (can just add a letter to a comment)
8. Exit and Enter Play Mode
9. Press on “Host”
10. Observe the Console window
Actual result: “Failed to bind UDP socket because the address is already in use. Likely because there is another process using port xxxx” error along with others are thrown
Expected result: No errors are thrown
Reproducible with: 2.5.2 (6000.3.0a1), 2.7.3 (6000.3.19f1), 6.5.0 (6000.5.3f1), 6.6.0 (6000.7.0a2)
Not reproducible with: 2.5.1 (6000.3.0a1)
Reproducible on: macOS Sequoia 15.7.5 (M1 Max)
Not reproducible on: No other environments tested
Notes:
- Once a domain reload occurs you won’t be able to host again on the same port
- Reproduction was done by installing the com.unity.netcode.gameobjects package, reproducible with field has the com.unity.transport package versions since that package is the culprit
- Error 1: “Failed to bind UDP socket because the address is already in use. Likely because there is another process using port 7777.”
- Error 2: “Server failed to bind. This is usually caused by another process being bound to the same port.”
- Error 3: “[Netcode] Host is shutting down due to network transport start failure of UnityTransport!”