Quantcast
Channel: Multiplayer
Viewing all articles
Browse latest Browse all 16796

NetworkServer.Listen fails to connect

$
0
0
Hey there people!

I'm not sure what's going on here but there's something fishy.

All I have for code is this:

int port = 42001; //Completely random unused port - verified with netstat
void Start() {
NetworkServer.Listen(port);​
}

I hit play, and you would expect it to not throw an error but every time I get the following error:
Cannot open socket on ip {*} and port {42001}; check please your network, most probably port has been already occupied

It doesn't matter what...

NetworkServer.Listen fails to connect

Viewing all articles
Browse latest Browse all 16796

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>