I'm trying to send information to a specific port (in this case 8888), and it worked fine. But now I'm having an issue where the port's still running and I can't figure out how to close it within Unity and/or outside of Unity. My issue is UDPReceive.
#I need help with UDP sockets
1 messages · Page 1 of 1 (latest)
This should be over in #1390346492019212368 . Client.Close() should work. But I don't remember if OnApplicationQuit() run from the editor or not. Trying putting it on a separate button or context menu to test it quickly
Oh ty, I didn't know which categories to place this under. From my experience OnApplicationQuit() was working from the editor.
For context, my issue is that this port is already in use before my application starts (I guess it didn't close properly for some reason this time). And I've been looking up ways to close and then reopen it, but nothing's working.
I'm starting to think if I should just switch ports entirely, but I feel like this issue will come up again
I'll try restarting my PC