Forums Index >> Modding >> Tutorial - Hosting a Server that does not appear i...



Page : <1> :


I've known this for long (I made the script we use here) but still...

This tutorial teaches you on how to create a server that will NOT show in the server list, but you'll STILL be able to join... Great for keeping baddies out. Password is optional ;)

 


 


1. What you need
- A Computer with TT installed and if needed with port forwarding set to host the server with
- Everyone that wants to join MUST have IPJoiner installed. Version is not important, but the latest one is advisable.

Optional:
- Static IP or Dynamic DNS Service (for example http://www.dyndns.com/ ) so your IP (in DynDNS case's URL) never changes.

 


 

2. How to set it up (Server-Side)
1. Open the file game/server/prefs.cs and find this line:

 

                                        
$Pref::Server::DisplayOnMaster = "Always";

 

And replace it with:

 

                                        
$Pref::Server::DisplayOnMaster = "Never";

 

2. After that host the game and give everyone that you're allowing to join your IP/DynDNS' URL, port used (default 28000) and password if the server has one.

 


 

3. How to set it up (Client-Side)
1. Make sure you installed IPJoiner and it's working.

2. The server hoster will HAVE to give you it's IP/URL and password if there is one. If there is a password add this line to the bottom of the main.cs:

 

                                        
$Client::Password = "PASSWORD HERE";

 

3. Run TT and open IPJoiners interface by double clicking the Join Server row in the server list and enter the IP and port in the form of "IP:PORT". If the hoster didn't give you a port, try 28000 as it's the default one.

4. If all went well, you should connect successfully and the game will start loading :)

 


 

This trick can also be used to mod in peace for example :P
Post here any questions you have :)

PS: If you're using a DynDNS URL MAKE SURE you have your router configured to update it every time your real IP changes. If you don't know how to do that or your router doesn't have that feature, use a program DynDNS offers and keep it running as it will update the URL automatically.


Last edited: Saturday, December 02, 2006 at 4:59:12 AM

Wednesday, November 29, 2006 at 10:06:24 AM

Wednesday, November 29, 2006 at 1:55:06 PM

Cool. Now how do you make it so you can see more than one of the dedicated servers on your LAN?

Wednesday, November 29, 2006 at 8:05:47 PM

Is it possible to add servers by:

 

                                        
$pref::Master0 = "2:master.garagegames.com:28002";

 

To

 

                                        
$pref::Master1 = "nutsserver.com :28002"

 

;

 

Last edited: Wednesday, November 29, 2006 at 8:40:13 PM

Wednesday, November 29, 2006 at 8:39:07 PM

Cool! Now I can keep those game spamers out...lol...And can you give me the codes website of yours? I lost it..I need the solo cheat instructions
P.S. All your codes are great, especialy the admin code ;) THX

 

Thursday, November 30, 2006 at 6:20:55 AM

@ NUTS!

^^That didn't work. I trashed the Prefs.cs.dso each time I tried the LAN IP and the WAN IP with port 28002. I tried it with the Garagegames master0 and without (TT put the GG address back in automatically). Its the IA:Snow's Resort server so I know its visible to others. Am I missing something?

[EDIT] Is it my router? Because I don't get 2 listings of the server at 28000 either (only 1).

Last edited: Thursday, November 30, 2006 at 5:49:09 PM

Thursday, November 30, 2006 at 5:42:26 PM

What nuts said wont fix that :P
It's the router, sometimes they retrieve 2 copies, sometimes not.
My old one didn't, but recently I got a wireless-n router from netgear and it retrieves two copies.


Friday, December 01, 2006 at 3:20:20 AM

What I want to do Art, is to see the dedicated servers on ports 28000 and 28002 simultaneously. Currently I can only see the one at 28000.

Friday, December 01, 2006 at 4:00:52 AM

^ Ah...
Run the first server, edit this in server/prefs.cs to the port you want:

 

                                        
$Pref::Server::Port = 28000;

 


And launch the second one.


Friday, December 01, 2006 at 8:01:46 AM

I have been playing around with running two servers at the same time for a while and after testing a few different options have finally had success. I am not sure about running 2 servers on one machine but this is how I did it using two seperate computers.

First I set up port forwarding on the router as follows

So the first server uses ports 28000 to 28004

And the second server uses ports 28005 to 28010

Next in the prefs.cs I set the first server to $Pref::Server::Port = 28000;

And the second server prefs.cs to $Pref::Server::Port = 28005;

Once these settings had been set and the servers fired up they both appear in the master server list and players can access either server.

Hope this helps

 

 

 

 

 

Friday, December 01, 2006 at 8:42:26 AM

To get 2 servers to show I did something similiar to dazzle. However, I just copied the whole folder and had one labeled scrum and the other as team scrum. Changing the server port on one, and make sure to use a -nohomedir on the command line.

 

Friday, December 01, 2006 at 9:27:48 AM

I'm using different computers for each dedicated server, but can only see the one at 28000 in my game console. I have each set up to ask for a specific port # at launch and I have my router set up to forward that port for its computer. They all show up on the current games page and Gnometech and people join them.

If its possible, I'd like to see all my servers in my game console. I'll try a second (different) router behind my firewall router.

Sorry for hijacking your thread Art. Thanks for the input everybody.

Saturday, December 02, 2006 at 3:37:31 AM

^ Set port fowarding on the router to each computer, and then set the pref I gave you above to the correct port on both! So for example foward 28000 to PC1, and 28001 to PC2, then set the preference on PC1 for port 28000, and on PC2 to port 28001.

Then launch one, and launch the other one :) should work... If not, it may be something else causing it (like your ISP or they have changed the way the Master Server works lately)


Saturday, December 02, 2006 at 4:57:32 AM

^I've done those things Art, and it works fine.

Because I can see the server on 28000 when the master server is down or my connection is down, you'd think the listing of servers on the LAN is independent of the master server.

[EDIT] My question for Dazzle would be: Do you see each server in your game console?

Last edited: Saturday, December 02, 2006 at 9:18:25 AM

Saturday, December 02, 2006 at 9:13:28 AM

@ BC

Yes both servers appear on my TT server list as well as the gnometech list.

If you want to chat about this maybe I can help, if so buzz me on yahoo or skype

 

 

 

 

Saturday, December 02, 2006 at 5:01:19 PM

I discovered today that my D-Link DI-524 modem/router had a preference called Gaming Mode buried in the Tools/Misc section.

From the manual:

 

Gaming Mode
If you are experiencing difficulties when playing online games or even certain applications that use voice data, you may need to enable Gaming Mode for these applications to work correctly. When not playing games or using these voice applications, it is recommended that Gaming Mode is disabled.

 

If I don't have Gaming Mode enabled I can only see the one server on my LAN that is at port 28000. In order to see and be able to join my other servers (at 28001, 28002, etc) I have to enable the Gaming Mode. This makes me wonder if enabling the Gaming Mode (or other similar such settings on other modem/routers) can improve TT performance.

Saturday, December 16, 2006 at 7:11:15 PM

I still need help evven though you gave that much information and helped. Well actually I get half of it.. :S

Last edited: Sunday, December 17, 2006 at 11:47:20 AM

Sunday, December 17, 2006 at 11:43:32 AM

^^ Gaming mode is probably a sort of UpNp or just port foward common ports. This makes me think that you werent port fowarding 28000 and 28001 AT THE SAME TIME to host 2 servers else it should have worked.


Sunday, December 17, 2006 at 1:34:23 PM

I think I had everything set up correctly to let WAN players connect.

TT clients only look for LAN servers at 28000.

Routers usually only let one LAN IP be associated with a port. Gaming Mode lets more than one LAN IP be associated with a port # and enables the "special" routing that needs.

Sunday, December 17, 2006 at 6:33:12 PM

^That's wrong. First, the Master server gets packets sent to it from all servers that are up and records the IP/Port. Then, once someone asks the master server for info, it simply gives them the IP/Port and that computer will ask DIRECTLY to that server what the name/players/etc are. The master server IS port-sensitive.

Also, routers always let infinite lan ips to be assigned to port numbers. You were hosting the 2 servers in the same computer? Wich ports? 28000 and 28001? You did configure it correctly? If so, why is it in your pic that you are assingning the ports to different computers?

Were you hosting with 2 computers? If so, did you configure one to use 28000 and the other the port it had fowarded to itself, 28005?

And were you sure the Lan IPs for the fowarding were correct?

The gaming mode is DMZ (De-militarized Zone) wich means the routers firewall is COMPLETELY turned off, and all connections will be sent to the routed computers IMEDIATLY no matter what they are. You will NOT need DMZ if the router is configured CORRECTLY. If it doesnt work without DMZ, then the problem is with the port fowarding config on the router.

Now, if you want a more detailed instruction so you do not need to DMZ (A LOT INSECURE), add me to WLM, Skype or YM (in profile)


Last edited: Monday, December 18, 2006 at 9:07:42 AM

Monday, December 18, 2006 at 9:06:37 AM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald