Game Development Community

Lan server command

by mb · in Torque Game Engine Advanced · 06/22/2007 (6:38 am) · 4 replies

I have a command to server function that only works if I host the game (ie: start the game with the exe and load a mission). If I run a dedicated server on my machine, and find the game in the lan browser (using the starter.fps alpha) the server command does not work. I have not tested it on the internet yet. I'm using a router and it wont return a heartbeat for the master servers. The router shouldnt matter when the client & server is run on the same machine should it? Anyone have any ideas or had this problem before?


Thank you
- mike

#1
06/22/2007 (7:46 am)
Make sure the port the game in communicating on is unblocked by your router. Find the $Pref::Server::Port entry for this. (I'm pretty sure that's the one)
#2
06/22/2007 (10:44 am)
Yeh the two ports I saw were 28000 & 28002. I forgot we had to reset the router a few times so it's probably back to defaults which would explain a lot. Thanks.
#3
06/22/2007 (10:52 am)
You also have to actually have a negotiated connection between the client and the server before NetEvents (which is what commandToServer uses) will propagate across any network.
#4
06/22/2007 (11:05 am)
I join the client to the server. The command is sent from a trigger in-game.