Port check

How to check in script if a port is in use.

It is for a multiplayer game, because now as example if have a port with a value of 2300 open I want to check of a server runs this port or not in script.
This would be very handy and helpfull for me.

Huge thanks for reading and helping me out with this!

You’d use exactly the same code as you’d use if you were making a non-Unity game in c#. Try to connect with a timeout. If you get a timeout the port’s not in use.