Topic: [GUIDE] How to host a server on Linux
Hi TeeWars Community!
- Today, I will show you how to successfully host a server on a Linux Ubuntu.
Requirements:
* Teeworlds
* An OK internet speed
* Linux Ubuntu 7.X or 8.X
Index:
1.0: Your Router
1.1: Port Forwarding
2.0: Setting up server
2.1: Running the server (thanks to: Tweek)
Part 1.0: Your Router
First thing would be to find your router name. Can be found in REAL LIFE .
I have placed mine in my entrance in the house (:
- or, you can try copy + paste one of these ip's and put them into your address bar:
192.168.0.1
192.168.2.1
192.168.2.0
192.168.1.0
192.168.1.1
And you'll access the router, and sometimes, there will be a name!
Example: Mine looks like this ::
Part 1.1: Port Forwarding
First thing, would be to go to this page: http://portforward.com/routers.htm
- then, go find your router .
Mine is a Belkin, but it wont care which one I choose, because every Belkin have the same interface + functions.
So, I chose "Belkin: F5D7633-4v2" - [ http://portforward.com/english/routers/ … rvices.htm ]
It'll tell me WHAT IP I should go to for accessing my router (:
- Mine is: http://192.168.2.1/
Next thing would be to find the page where you can do the port forwarding stuff.
- On mine: http://192.168.2.1/fw_virt.htm
Now, the confusing part ::
You'll need to forward the port: 8303 - UDP
On Belkin, this is so easy (will show you a picture later)!
You'll need to know your IP on your router - Mine is 192.168.2.4
The last digit (4 in my situation) is the most important in this configure!
It is your private router IP.
- Find mine, with testing with every digit up to 9 . Example: 192.168.2.9 and 192.168.2.8 and so on
In my router:
And that should be it!
Part 2.0: Setting Up Server
First, find your TeeWorlds main folder .
Download this CFG file, and save it into your TeeWorlds Main Folder: http://rapidshare.com/files/95109680/teewars.cfg
- Now, how to modify this?!?!
sv_name Test
sv_gametype DM
sv_warmup 1
sv_map dm6
sv_maprotation ctf1 ctf2 dm6 dm2 dm1
sv_max_clients 8
sv_scorelimit 25
rcon_password Remote Console Password Here
sv_port 8303
sv_register 1
masterserver master.teewars.com
Explanation:
sv_name = Your Server name
sv_gametype = Gametype. (DM = Deathmatch , TDM = Team Deathmatch, CTF = Capture the Flag)
sv_warmup = Warmup time
sv_map = Starting map
sv_maprotation = What map it should take after the one before
sv_max_clients = How many players that can connect
sv_scorelimit = How many kills, until the game ends.
rcon_password = Put your Remote Console Password Here
sv_port = Your port! Don't touch it.
sv_sendheartbeats = Online / LAN Setting. (1 = Online, 0 = LAN)
masterserver = Master server. Will check if your ports is fine - Don't touch it
Now, it should be done. Save & close it!
Part 2.1: Running the Server (thanks to Tweek)
First, open "Terminal" .
Write: sudo -s
- enter your username-password
It'll now say: root@computername
- Now, write:
cd '/home/USERNAME/TEEWORLDSFOLDER'
Example: cd '/home/pvpede/Desktop/Programs/Teeworlds'
- Mine will now show: root@pvpedes-ubuntu:~/Desktop/Programs/Teeworlds#
Now, write:
./teeworlds_srv -f teewars.cfg
The server will start up!
Mine shows:
root@pvpedes-ubuntu:~/Desktop/Programs/Teewars# ./teewars_srv -f teewars.cfg
[47c4322d][server]: starting...
[47c4322d][config/load]: loading teewars.cfg
[47c4322d][datafile]: datafile loading. filename='data/maps/ctf1.map'
[47c4322d][server]: data/maps/ctf1.map crc is 15a863e5
[47c4322d][server]: server name is '[DS] Clan Server! DSClan.org'
[47c4322d][datafile]: loading data index=8 size=158
[47c4322d][]: 0x8285024 0 -> -1 (init)
[47c4322d][]: 0x82852f8 0 -> -1 (init)
[47c4322d][]: 0x82855cc 3212308 -> -1 (init)
[47c4322d][]: 0x82858a0 0 -> -1 (init)
[47c4322d][]: 0x8285b74 0 -> -1 (init)
[47c4322d][]: 0x8285e48 0 -> -1 (init)
[47c4322d][]: 0x828611c 0 -> -1 (init)
[47c4322d][]: 0x82863f0 0 -> -1 (init)
[47c4322d][]: 0x82866c4 0 -> -1 (init)
[47c4322d][]: 0x8286998 0 -> -1 (init)
[47c4322d][]: 0x8286c6c 0 -> -1 (init)
[47c4322d][]: 0x8286f40 0 -> -1 (init)
[47c4322d][game]: -- Team Death Match --
[47c4322d][server]: version 0.3 e2d7973c6647a13c
[47c4322d][engine/mastersrv]: refreshing master server addresses
[47c4322d][register]: refreshing ip addresses
[47c4322d][engine/mastersrv]: saving addresses
[47c4322d][register]: fetching server counts
[47c4322d][register]: choosen 'master3.teewars.com' as master, sending heartbeats
[47c4322d][register]: no firewall/nat problems detected
[47c4322d][register]: no firewall/nat problems detected
[47c4322d][register]: server registered
Updated 13:44 - 29'th of March // 2008
Updated 18:56 - 8'th of May // 2008