Game Development Community

Torque 1.5 and Master Server/Client problem

by Steven J Hammans · in Technical Issues · 06/02/2007 (12:58 am) · 11 replies

Hello, I am new to Torque (4days) I am having trouble setting up the networking side of things over the internet...

I am using the starter.fps as a base until I have learned more

This link is what I have been following:-

http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=9226

I have a dedicated windows 2k3 server located in the US
which I am trying to get the Master Server to run on as well as the 3 game servers

that part seems to be working fine (although I'm not entirely sure)

I get the problem...
when I run the client (here in the UK running on windows xp) i click on 'join server' then 'query master' then receive an error message 'No master servers found' I then check the client log file and see that the client tried to connect to the server but couldn't find it...it tries to connect 3 times then 'times out'

I followed the directions in the post mentioned above exactly (over and over) then I decided to change some things to see if that worked (over and over) basically I tried everything i could think of and then some(over and over) but absolutely nothing I tried has worked so far.

I don't know if its client or server side...I'm thinking it could be server side and that the master server is just not answering the client....or maybe its something to do with the ports not being open ( i have allowed the correct ports on the client so its not a firewall issue...Although it may be the port on the server that is not open and im still triying to figure out how to open the ports on the server if they not open already) but all this just me clutching at straws...I really have no idea what to do next.

I think a lot of people have had problems with setting up a Master Server, I just hope someone has figured out how to do it by now and does not mind sharing the information.

So if you have any suggestions or need more info please post here and if you have a working server/client model I would love to hear from you.

thanks

Steve

#1
06/02/2007 (6:33 am)
Just to add i'm pretty sure now that its something to do with the ports on the dedicated server not being open ( i have no firewall running at present as I want to get this operational before i sort that out)

I have used some scanning software and apparently there are no UDP ports open so i guess the client is being blocked on the port im using

So my next question is does anyone know how to make sure the ports on a windows 2003 server are open?

thanks


Steve
#2
06/02/2007 (8:47 am)
The ports that i wish to use are definitely not blocked by anything.... I have checked with my hosting company

So what is the problem?

Do I need to activate the ports that I wish to use somehow?

If how?


any help would be greatly appreciated :P


Steve
#3
06/02/2007 (10:12 am)
Just to update I changed the port number that the game should use to port 25 which i knew was open everything worked first time!!! :) :) :)

The only thing is I don't want it running on port 25 as that is for other things

So I still need to know how to open ports properly in windows 2003 server but I am much happier now I know all the code works.

So now just waiting for some help on how to open the ports I want :P
#4
06/04/2007 (12:52 am)
Were you able to set up a net game using the built in stuff (and GG's master server)? Is it just this dedicated master server mod you are having trouble with, or the all the netcode per se?
#5
06/04/2007 (2:24 am)
Hello Lee, in answer to your question...yes I was able to set up a net game using the built in 'stuff'
I thought it was just the master server client mod that was the problem but I have since found out that the mod works fine (as I tested it on a port that was already open on my server)

The problem im having atm is trying to open ports on my dedicated server(the ones that I want) I know all the code works because I had the game successfully connecting via the ftp and web ports which are usually left open, Im very new to all this networking stuff and am still a bit lost as to how I should go about opening ports on my server.

I have made exceptions for the ports on the windows firewall and checked the router(which is not blocking my desired ports)

Im thinking that setting up a VPN atm would be the way to go...but im just guessing
#6
06/04/2007 (2:30 am)
Below is a link to my current problem and its slow progress:-

www.garagegames.com/mg/forums/result.thread.php?qt=62932
#7
06/04/2007 (4:19 am)
Man. Just run Linux.

So much easier.
#8
06/04/2007 (6:30 am)
>Just run Linux.

Umm no.
The problem here is user error and a general lack of understanding basic networking.
On behalf of the Linux community - you're not ready for Linux yet.

Ok, let's go over a few things from your other thread:
>Thanks Eric but the thing is i pay for the dedicated server from a hosting company who will not give me access to the router
> Btw: router address is a local address usually like: 192.168.0.245 but I'm sure it depends on the router.

Dedicated server means you have a real external ip address. There is no "netgear/linksys/insert nat appliance here" between you and the net. Your server shouldn't have a 10.x.x.x or 192.168.x.x address.

>.I used telnet to test the ports out and received the message "Could not open connection to host, on port xxxxx: Connect failed'

You cannot "telnet" to a UDP port. Telnet uses TCP. Torque uses UDP. Toruqe just isn't going to say - Hi, I'm a torque game server! - when you connect to it.
http://en.wikipedia.org/wiki/User_Datagram_Protocol - Read it.

>Whats a VPN?... do I have to set one up?
http://en.wikipedia.org/wiki/VPN - Read it
And no, no you don't need a VPN. That's the last thing you need.

>Well now the registry has got corrupted so I cant even activate all the services I need to get the VPN working
What? As much as I like to bash windows (windows sucks), this doesn't even sound right. What have you done to this poor machine? Once again - drop the whole VPN thing, ask clippy to fix your registery and move on.

>Make sure you do a LOT of research on your hosting company BEFORE you order a server with them, I thought I had... but the company im using is of no help whatsoever
This isn't the companies fault. They've done their job - set you up a server to use, supplied power and net. That's the end of their scope of support. They don't know or care what you're trying to run on said box.

>I changed the port number that the game should use to port 25
Umm no.. Use a unprivileged port (1024 - 65535)
If you telneted to port 25 and got a response, that's just your mail server saying hi.

You really need to take a step back and learn some basic networking stuff before trying to run your own server.
http://www.amazon.com/Networking-CD-Bookshelf-2-0/dp/059600334X/ref=sr_1_2/002-3641017-8441600?ie=UTF8&s=books&qid=1180963632&sr=1-2
Buy it, read it.
#9
06/04/2007 (7:19 am)
@David-
Thanks for your response ;) finally someone who knows what they are talking about... your right I do need to learn some basic networking stuff so I will be checking your links out later today.

Steve
#10
06/04/2007 (1:58 pm)
I do think running a game server is a great way to learn basic networking stuff. I mean, you gotta _do_ something.
#11
07/28/2007 (6:45 pm)
Hello, i have worked on many different types of server/client games, anyways i beleive although not sure if u have windows you can portforward to do so you must have a router.

Go to your connections in start menu then you click 'properties' on LAN local area network look at your default gatway and your comps ip now go to internet explorer type in your default gateways in adress bar then (I have linksys as my router its dif for dif routers) type in name-admin pass-admin , look for applications and gaming/port forwording then when you do find portforwarding you need to forward ftp and http (i believe) use your port of your choosing then type in the ip adress you got from earlier NOT THE DEFAULT GATEWAY! anyways after that save changes and then open the port using the way you know through PATH anyways hope this helps if you have problems just tell me. Also I have not used port forward for TGE/TGEA so idk if it works perfectly. HOPE it helps!

oh yeah if you portforward and have your own server which you run via app. then you dont need a server provider for "Low Scale" but if you plan on like lots of ppl i would use the formal one.