• Hey! Guest! The 39th GMC Jam will take place between November 26th, 12:00 UTC and November 30th, 12:00 UTC. Why not join in! Click here to find out more!

GMS 2 Some networking error

N

NNNIKKI

Guest
I'm pretty sure this is trivial, since this is the first time I'm implementing networking...
Resizing swap chain...Error (0x 2740): Can't bind port
Setting SO_REUSEADDR and retrying...Error (0x 271d): Can't bind port even with SO_REUSEADDR
I can provide more code if it's needed but I don't think it is.
 

The-any-Key

Member
The error suggest you are trying to use a port that is already in use. Ex if you try start a socket on port 6510 and then try start another socket on port 6510 you will get that error. Also note that some ports are already used by other apps. Also note that if you destroy a socket, to free the port, it will take around 5-10 seconds before you can use that port again.
 
Top