Port selection for TGE game connection
by Ali Khan · in Torque Game Engine · 03/28/2007 (10:39 pm) · 0 replies
Hi,
I am trying to run multiple copies of Torque on a single machine. The problem I am facing is with network port selection. As two copies require two different ports to create the game connection socket.
I know TGE handles this in portInit function called through server side script function portInit in server.cs. But my problem is a little different because I also have TNL integrated into TGE. My simulation requires seperate connections by TGE and TNL.
Coming to the problem, TGE portInit function does not detect the port that is already taken by the TNL connection. I mean it thinks that the port is available although I have the TNL connection on the same port, same IP and same network protocol and the connection is working because I can send and recieve data on that TNL connection.
How is this possible that I have a working socket on a port and still TGE thinks that the port is available in the portInit function ?
One thing I must mention here is that everything works fine on my local machine and TGE does detect the TNL port is taken but when I run this on the remote server machine which is running Windows 2003 server, the port detection fails.
Ali Khan.
I am trying to run multiple copies of Torque on a single machine. The problem I am facing is with network port selection. As two copies require two different ports to create the game connection socket.
I know TGE handles this in portInit function called through server side script function portInit in server.cs. But my problem is a little different because I also have TNL integrated into TGE. My simulation requires seperate connections by TGE and TNL.
Coming to the problem, TGE portInit function does not detect the port that is already taken by the TNL connection. I mean it thinks that the port is available although I have the TNL connection on the same port, same IP and same network protocol and the connection is working because I can send and recieve data on that TNL connection.
How is this possible that I have a working socket on a port and still TGE thinks that the port is available in the portInit function ?
One thing I must mention here is that everything works fine on my local machine and TGE does detect the TNL port is taken but when I run this on the remote server machine which is running Windows 2003 server, the port detection fails.
Ali Khan.