We are currently updating the articles for 1.09.0. Translated articles will need to be updated by their respective authors.

Dedicated Server Setup

From No More Room in Hell
Revision as of 19:15, 11 September 2012 by Darkst3alth (Talk | contribs) (Created page with "{{stub}} == Overview == This article covers the bare minimum for server setup. Additional guides are recommmended! == Connectivity == '''An important note''' to begin with is ...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Overview

This article covers the bare minimum for server setup. Additional guides are recommmended!

Connectivity

An important note to begin with is that after this section you computer will be accesable by two IP addresses (external & internal), however most of the time you will only be able to use one of them (internal)!


To get things started, you will have to determine what your public IP is. This will be the address you send to your friends. There are many sites that show you it - even Google "What is my IP address".

Now you have your public/external address, you will have to open ports. To play on the server you can have only 27015 (UDP) open. The server doesn't use TCP trafic for gameplay and thus is reccomended that you do not forward it (explained later)! You will have to tell your router to pass the traffic it gets on port 27015 (UDP) to the computer you are hosting on. There will be no explaination on how to do that, as it varies greatly. A recommened website is http://www.portforward.com which will show you how to port forward.


While working in a consumer environment (such as your house/apartment) you will probably have a DHCP server (most likely your router). This allows the device to pass out internal IP addresses to other devices that connect to it. However, this can cause the computer you host your server on to have a different IP address an thus break the port forwarding. In order to prevent this from happening, you will have to set a static IP for the machine's interface.


Now you maybe wondering why you only need 27015 (UDP) open. Why not 27015 (TCP) with all those other ports as well? The remote console for the server runs on 27015 (TCP) and can lead to security issues and Denial of Service attacks (DoS). You should only allow the TCP traffic in if you know what your doing. Other ports shown in other guides are not needed, and thus don't need to be opened.

Setting up a Listen Server

The most common server to use if you just want to play with your friends. Doesn't require a seperate computer and is little to no fuss to setup.


In the options menu for No More Room in Hell go in the Keyboard tab click the Advanced button. Now check the box marked as "Enable developer console". From the main menu, click create server and choose your desired options, then start the server.

After it has finished starting to load (if may "freeze", just be patient) you will have to set sv_lan to 0 in order for your friends to connect. This is done by opening the console with the ~ key. Type in sv_lan 0 and press enter. You can now close the developer console.


If you server is not listed in the server browser, your friend will have to do some work with the developer console. Use this command in the console to connect: "connect XXX.XXX.XX.XXX" without quotes. Where XXX.XXX.XX.XXX is your public IP address.

You should now be done and playing with your friends on your very own listen server!

Server Commands

You can use these commands on listen servers as well as dedicated servers. Enter the command/cvar you want to use, and the value (if it requires one).


sv_votekick_timer 10


While on a listen server, open the developer console with the ~ key.

Command/Cvar Description Example
changelevel Peacefuly change the map to another, and tell clients it's changing. changelevel nms_northway
map Force the server to change the map to another. Used to reload configuaration as it kicks all clients (Server Shutting Down). map nms_northway
kick Kick a player right away. kick dark_st3alth