-
-
Notifications
You must be signed in to change notification settings - Fork 139
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Likely Unity's fault: "Only one usage of each socket address (protocol/network address/port) is normally permitted" #82
Comments
#53 was the previous issue (just for reference). I had someone else complain about this same error on Discord just the other day. It's caused by the socket not being shut down correctly (even though—as far as I know—it should be when calling I myself haven't run into this error in several months, which makes debugging it virtually impossible. Any additional information about in which scenarios/what you were doing when the error occurs would be extremely helpful, particularly if you notice any patterns. Even just putting a |
I have a bit more info: my friend is making rpg with unity and he gets the same error with Mirror networking solution. He also fixes it just by restarting Unity. |
That's helpful to know, but still isn't definitive—either Mirror has the same problem or something about the Unity editor prevents it from shutting sockets down properly... The last time I personally ran into this (months and months ago), I think it may have been after making code changes while the editor was in play mode. Perhaps when Unity rebuilds/reloads the code it either messes with running sockets or prevents the shutdown code from running? That was a long time ago and may have just been a one-off though, so if anyone else can provide more context regarding the conditions/timing/circumstances of this error, that'd be a big help. |
Yeah that sounds like a valid theory. |
Yeah, I've noticed it happening under those circumstances, but I can't confirm that that's the only time it happens :/ |
Yes, I submitted the same issue before.
I don't know how to reproduce, I get the issue after some time when I have stopped and started play mode in unity editor multiple times. It gets fixed when I restart the unity editor.
The text was updated successfully, but these errors were encountered: