- Home /
how to use the listen port in this case?
this is initialize server in the documentation
static function InitializeServer(connections: int, listenPort: int, useNat: bool): NetworkConnectionError;
for the listenPort parameter, what im wondering, is that supposed to be the port of the masterserver that you have running, or is that something else, i read somewhere that your game actually has a listen port and i cant really find out what it is, if so i guess i need to forward some more ports, can i just get an explanation of the use of this listenPort parameter, just trying to get some things straight, thank you for your time
Network.InitializeServer($$anonymous$$ax Connections, port clients will connect, do i have a public ip address);
-the listen port is the port with which the server listens for connect requests from clients I believe the default port is 25001
-if you computer does not have a public ip address (ex your running it on your computer with an ip of 192.168.1.x or 10.0.1.x you'll probably need to enable natpunchthrough
-$$anonymous$$ake sure your forwarding the correct ports to the correct ip on your router and that your firewall is not blocking access to your server from your computer... thats all i know
this page might help http://forum.unity3d.com/threads/74377-Port-Forwarding-for-a-networking-newbie
Your answer
Follow this Question
Related Questions
Unity networking tutorial? 6 Answers
Remote database for leaderboard 2 Answers
Server always online ~ powered by website? 1 Answer
Netcode [Command] Issues .. no errors, just not working. 1 Answer
Server List 0 Answers