Playing over Internet
by Quest Johnny · in Torque Game Engine · 08/23/2004 (10:21 am) · 10 replies
How does one set up an internet game using, say, the FPS Starter Kit?
I have some game-mechanics I want to try, but I only get the "Query Lan" and "Query Master" options for multiplayer.. no IP or anything.
UPDATE: Ok, I found out about master-sserver and that. I got my client and server seeing each other over the internet by changing the game name.. but the client says "Server Timed out" now -oh I wonder..
I have some game-mechanics I want to try, but I only get the "Query Lan" and "Query Master" options for multiplayer.. no IP or anything.
UPDATE: Ok, I found out about master-sserver and that. I got my client and server seeing each other over the internet by changing the game name.. but the client says "Server Timed out" now -oh I wonder..
About the author
#2
Here's the trace of it trying to go through the "Query Master":
ServerQuery: start Querying master server 0
No master servers found in this region, trying IP:216.116.32.49:28002.
Requesting the server list from master server IP:216.116.32.49:28002 (2 tries left)...
Received server list packet 1 of 1 from the master server (1 servers).
Pinging Server IP:XX.131.60.28:28000 (3)...
ServerQuery: query Querying servers: 1 left... 0.5
Querying Server IP:XX.131.60.28:28000 (3)...
ServerQuery: query Querying servers: 0 left... 1
ServerQuery: done One server found. 1
Server query canceled.
Adding a pending connection
Sending Connect challenge Request
CDROP: 2434 IP:XX.131.60.28:28000
That's the correct IP. ( I replaced one number with XX )
UPDATE: I thought this might be a firewall/router problem.. I tried the host computer on DMZ, no dice. I forwarded the default port, 28000. I already have port 12345 forwarded, so I've switched all the port settings to 12345.
I also thought, port 80 was a fairly innocuous port, but that didn't work either. oH correction: when I used port 80 I can't even get a server status :/ - no servers found
08/23/2004 (3:23 pm)
It says "no such command?"Here's the trace of it trying to go through the "Query Master":
ServerQuery: start Querying master server 0
No master servers found in this region, trying IP:216.116.32.49:28002.
Requesting the server list from master server IP:216.116.32.49:28002 (2 tries left)...
Received server list packet 1 of 1 from the master server (1 servers).
Pinging Server IP:XX.131.60.28:28000 (3)...
ServerQuery: query Querying servers: 1 left... 0.5
Querying Server IP:XX.131.60.28:28000 (3)...
ServerQuery: query Querying servers: 0 left... 1
ServerQuery: done One server found. 1
Server query canceled.
Adding a pending connection
Sending Connect challenge Request
CDROP: 2434 IP:XX.131.60.28:28000
That's the correct IP. ( I replaced one number with XX )
UPDATE: I thought this might be a firewall/router problem.. I tried the host computer on DMZ, no dice. I forwarded the default port, 28000. I already have port 12345 forwarded, so I've switched all the port settings to 12345.
I also thought, port 80 was a fairly innocuous port, but that didn't work either. oH correction: when I used port 80 I can't even get a server status :/ - no servers found
#3
Are your game types and all matched up?
08/23/2004 (6:15 pm)
Got sick of explaining how to connect, so now connect() actually works...Are your game types and all matched up?
#4
ps, in case this is what you meant by "explaining connection" I did try this sort of thing:
Echo($Pref::Server::Port);
$newconn = new GameConnection(ServerConnection);
$newconn.setConnectArgs("Universal");
$newconn.setJoinPassword("");
$newconn.connect("192.168.0.4");
Game types meaning.. the same executable? Yes. game names match also..
08/23/2004 (6:46 pm)
Soo.. I should do a head-sync :) ?ps, in case this is what you meant by "explaining connection" I did try this sort of thing:
Echo($Pref::Server::Port);
$newconn = new GameConnection(ServerConnection);
$newconn.setConnectArgs("Universal");
$newconn.setJoinPassword("");
$newconn.connect("192.168.0.4");
Game types meaning.. the same executable? Yes. game names match also..
#5
08/28/2004 (11:15 am)
There are several variables - game type, game name, map, and some other fun stuff. If they don't all match the game may not connect properly. You can check the console log for some tea leaves indicating where the problem lies.
#7
09/04/2004 (1:37 pm)
That's good. If you can do LAN but not net, then it might be a firewall or router issue.
#8
The server has the following log:
Connect request from: IPX:CECECECE:CECECECECECE:52942
Connection established 1459
CADD: 1460 local
from the server itself, then:
Received info request from a master server [IP:216.116.32.49:28002].
Sending heartbeat to master server [IP:216.116.32.49:28002]
Sending heartbeat to master server [IP:216.116.32.49:28002]
and when it ends:
*** ENDING MISSION
CDROP: 1460 IPX:CECECECE:CECECECECECE:52942
but no CADD from the client. The client has the following log:
No master servers found in this region, trying IP:216.116.32.49:28002.
Requesting the server list from master server IP:216.116.32.49:28002 (2 tries left)...
Received server list packet 1 of 1 from the master server (1 servers).
Pinging Server IP:66.131.60.28:28000 (3)...
ServerQuery: query Querying servers: 1 left... 0.5
Querying Server IP:66.131.60.28:28000 (3)...
ServerQuery: query Querying servers: 0 left... 1
ServerQuery: done One server found. 1
Server query canceled.
Adding a pending connection
Sending Connect challenge Request
CDROP: 1355 IP:66.131.60.28:28000
The client then says "Server connection timed out"
There's no challenge-request info on the server.
Beyond opening the ports on the router I'm not sure what to try next.
Appreciate any help
09/10/2004 (10:14 am)
I've opened ports on the router 28000 through 28002 for both the regular game-port and the garagegames' master.The server has the following log:
Connect request from: IPX:CECECECE:CECECECECECE:52942
Connection established 1459
CADD: 1460 local
from the server itself, then:
Received info request from a master server [IP:216.116.32.49:28002].
Sending heartbeat to master server [IP:216.116.32.49:28002]
Sending heartbeat to master server [IP:216.116.32.49:28002]
and when it ends:
*** ENDING MISSION
CDROP: 1460 IPX:CECECECE:CECECECECECE:52942
but no CADD from the client. The client has the following log:
No master servers found in this region, trying IP:216.116.32.49:28002.
Requesting the server list from master server IP:216.116.32.49:28002 (2 tries left)...
Received server list packet 1 of 1 from the master server (1 servers).
Pinging Server IP:66.131.60.28:28000 (3)...
ServerQuery: query Querying servers: 1 left... 0.5
Querying Server IP:66.131.60.28:28000 (3)...
ServerQuery: query Querying servers: 0 left... 1
ServerQuery: done One server found. 1
Server query canceled.
Adding a pending connection
Sending Connect challenge Request
CDROP: 1355 IP:66.131.60.28:28000
The client then says "Server connection timed out"
There's no challenge-request info on the server.
Beyond opening the ports on the router I'm not sure what to try next.
Appreciate any help
#9
You could try a TNL demo to see if it will work.
You could run a packet sniffer.
You could add more debug statements in the network layer.
Those are the things I would consider trying.
09/11/2004 (7:36 am)
You could try turning off all your security, then turning it back on piece by piece.You could try a TNL demo to see if it will work.
You could run a packet sniffer.
You could add more debug statements in the network layer.
Those are the things I would consider trying.
#10
I switched the client and server. I have two machines on my home network, one is older and slower.. the other is state of the art, faster. Normally, I run the faster one as mater, and connect client using the slower (again which works over LAN but not internet.) I just tried it the other way around, with the slower machine as master, and trying to connect the faster machine as client.. no servers were found, LAN -or- internet.
Is it a factor that the machine being a bit slower, may be making connections impossible ( too slow to pick up? ) Note: By slow I mean the performance is so LOW that the mouse actually tracks slow across the screen
UPDATE: this is now confirmed. When I tried with someone else over internet, it WORKED. The 2ndary machine I was testing with was simply too slow to work. So I can continue development again.. thanks!!
09/17/2004 (8:25 am)
I am just trying to debug the network code, when I tried something else and noticed something perhaps important.. I switched the client and server. I have two machines on my home network, one is older and slower.. the other is state of the art, faster. Normally, I run the faster one as mater, and connect client using the slower (again which works over LAN but not internet.) I just tried it the other way around, with the slower machine as master, and trying to connect the faster machine as client.. no servers were found, LAN -or- internet.
Is it a factor that the machine being a bit slower, may be making connections impossible ( too slow to pick up? ) Note: By slow I mean the performance is so LOW that the mouse actually tracks slow across the screen
UPDATE: this is now confirmed. When I tried with someone else over internet, it WORKED. The 2ndary machine I was testing with was simply too slow to work. So I can continue development again.. thanks!!
Yiding \"Linker\" Jia