Client immediately disconnects with no error

I am using Mirror, and when I have the editor as Server+Client and try to connect in the build, the build immediately disconnects with no errors. If I do it the other way around and connect in the editor, it works completely fine. Any idea what could be causing it?


There could be several potential reasons for this issue. Here are a few possibilities to consider:

Firewall or network settings: Ensure that your firewall or network settings are not blocking the connection between the build and the editor. Check if there are any specific firewall rules or security settings that might be preventing the connection.

Build configuration: Verify that the build is using the correct network settings and configurations to connect to the editor. Double-check the IP address and port number used for the connection to ensure they are accurate.

Compatibility issues: It’s possible that there might be compatibility issues between the build and the editor. Make sure that both the build and the editor are using the same version of Mirror and any other relevant networking libraries. Additionally, check for any known issues or updates related to the version you are using.

Error logging: Although you mentioned that no errors are displayed, it’s still worth checking if any error messages are logged elsewhere, such as in console logs or log files. Examine these logs to see if there are any clues about the cause of the disconnection.

Connection timeout: If there is a significant delay in mcdvoice establishing the connection between the build and the editor, it’s possible that the connection is timing out. Consider increasing the timeout duration or adjusting any relevant settings related to the connection timeout.

Hardware limitations: In some cases, the issue might be related to the hardware limitations of the machine running the build. If the build requires more resources (e.g., processing power, memory) than the machine can provide, it could result in a disconnection. Check the system requirements and ensure that the build’s hardware requirements are met.

Bug in the code: Review your code for any potential issues that could lead to an immediate disconnection. Check for any errors or exceptions that might be occurring during the connection process.