Connect using IP, possible?
by Brent Cowan · in Technical Issues · 06/19/2006 (5:19 pm) · 4 replies
The simplest way to network a game is to require one of the players to enter the IP address of the other player who is doubling as a server. Yet there are no examples of this type of connection. I've read both books on Torque, no help there. I've read through the forums and found several people asking about this type of connection, none are answered.
I assume it is possible but I have tried and I can't get it to work on my own. If anyone out there has managed to get this to work, please post some code here and a little advice for the rest of us.
Thanks
I assume it is possible but I have tried and I can't get it to work on my own. If anyone out there has managed to get this to work, please post some code here and a little advice for the rest of us.
Thanks
#2
I tried it but it didn't work. The connecting computer timed out. The server's console log makes no mention of recieving a request. The IP and port were correct, I double checked them.
Any ideas? Is there some other setting that could be the problem?
06/20/2006 (10:43 am)
Thanks for the speedy reply,I tried it but it didn't work. The connecting computer timed out. The server's console log makes no mention of recieving a request. The IP and port were correct, I double checked them.
Any ideas? Is there some other setting that could be the problem?
#3
06/20/2006 (3:07 pm)
Firewalls are most often the issue here--can you ping the target host, telnet into port 28000, etc?
#4
06/22/2006 (1:09 pm)
I can ping but I get a connection error when I try to telnet the port. Isn't there some flag or variable I have to set to make the host listen for new connections?
Associate Orion Elenzil
Real Life Plus
new GameConnection().connect("<host>:<port>");but it's set by the server.