How to host a server

Read tips and guides about teeworlds-related subjects (mapping, compiling, ..).
Post Reply
User avatar
justafish
Posts: 58
Joined: Sun Dec 18, 2016 7:49 pm
Location: Sweden
Player profile: https://ddnet.tw/players/Just%20a%20fish/

How to host a server

Post by justafish »

How to host a server
written by justafish

Local:
1. Open the folder where DDNet.exe i located
2. Click on DDNet-Server.exe
3. Tada! A local server is now started that you can find it under "local" in teeworld's server-browser. But how do you get it online?
Example Server RunningShow
Image
Example Server BrowserShow
Image
Online:
1. You need to port-forward in the router. This will enable other people to connect to your server
2. Here you can probably find the router you have and how to port-forward it: https://portforward.com/router.htm (example)
3. There are two important things you need. The local IP of your computer and the port to forward. The default port for teeworld is 8303 and you can find your local IP by clicking here https://www.whatismybrowser.com/detect/ ... ip-address. It should be something like 192.168.x.x
4. Go back to the guide in step 2 and port-forward the port 8303 for your local ip
5. Before you can see your server in the server-browser you need to edit the Configuration (see below) and set "sv_register 1"
6. After you have edit the configuration file in step 5, you should be able to see your server in the server-browser, and you are done! If it isn't listed, go to step 7.
(7.) If it is not listed (very rare) you can try to connect to the server "manually". Give your external ip and port. You can find your external IP here: http://www.whatsmyip.org/ the port you used is still 8303. Now you can give them something like 123.6.128.7:8303. This means "connect to my computer (123.6.128.7) on port (8303). Your friends can write this address in server-browser, see image below.
Example Host Address BarShow
Image
Configuration, how do you name the server? Login to rcon? etc?
1. Open the folder where DDNet.exe i located
2. Edit the file autoexec_server.cfg with some text-editor, like notepad.
3. Keep reading the comments in the file (lines that start with '#') for more information.
Here you can find all the different configurations: https://ddnet.tw/settingscommands/
To Register The Server, make sure "sv_register" is set to 1!
Example Server Register 1Show
Image
Example Folder:
Example FolderShow
Image
Feel free to PM with any questions :)
Smoking kills. If you're killed, you've lost a very important part of your life.
User avatar
Cellegen
Posts: 1129
Joined: Sun Nov 06, 2016 10:39 pm
Player profile: https://ddnet.tw/players/Cellegen/
Mapper profile: https://ddnet.tw/mappers/Cellegen/
Clan: RestInHell.

Re: [Shortguide] How to host a server

Post by Cellegen »

Very helpful information its need to stick it in the helping section.
RestInHell. - Team Leader
Index
Posts: 1107
Joined: Mon May 05, 2014 7:30 pm
Clan: Eagle

Re: How to host a server

Post by Index »

Thanks for this tutorial :3
I added the headline and linked the thread in the tutorials list.
Now I'm just super curious what secret friends you have, so it must be white-censored xdd
User avatar
justafish
Posts: 58
Joined: Sun Dec 18, 2016 7:49 pm
Location: Sweden
Player profile: https://ddnet.tw/players/Just%20a%20fish/

Re: How to host a server

Post by justafish »

Cellegen wrote:Very helpful information its need to stick it in the helping section.
Thank you :) Agree!
Index wrote:Thanks for this tutorial :3
I added the headline and linked the thread in the tutorials list.
Now I'm just super curious what secret friends you have, so it must be white-censored xdd
Hahaha no problem! :D Yeah my friends are a super secret x)
Smoking kills. If you're killed, you've lost a very important part of your life.
ThumpaDaBumpa
Posts: 6
Joined: Sun Mar 12, 2017 8:40 pm
Player profile: https://ddnet.tw/players/ThumpaDaBumpa

Re: How to host a server

Post by ThumpaDaBumpa »

I did all the steps but it will not let me find it on the online tab. Every single step!
User avatar
Cellegen
Posts: 1129
Joined: Sun Nov 06, 2016 10:39 pm
Player profile: https://ddnet.tw/players/Cellegen/
Mapper profile: https://ddnet.tw/mappers/Cellegen/
Clan: RestInHell.

Re: How to host a server

Post by Cellegen »

-Has people playing OFF in Teeworlds,
-Check out "autoexec_server.cfg",
-Check out also "DDNet-Server.exe" if it isn't starts.
RestInHell. - Team Leader
[email protected][email protected]
Posts: 18
Joined: Mon Sep 21, 2020 3:48 pm

Re: How to host a server

Post by [email protected][email protected] »

i have no clew how i find my local IP and my router.
User avatar
DumbCat
Posts: 14
Joined: Sat May 15, 2021 9:57 pm
Player profile: https://ddnet.tw/players/DumbCat
Clan: [DMG]
Website: https://www.youtube.com/channel/UCfpvty ... tR8SofYObg

Re: How to host a server

Post by DumbCat »

-Has people playing OFF in Teeworlds,
-Check out "autoexec_server.cfg",
-Check out also "DDNet-Server.exe" if it isn't start
-or press run server in main menu :)
(quiting the game, only activ on forums for now)
jozcraft
Posts: 1
Joined: Sat Jul 17, 2021 1:15 pm
Player profile: https://ddnet.tw/players/jozcraft/
Clan: mαιπ

Re: How to host a server

Post by jozcraft »

Hi! I did everything normally as in the tutorial to this 6 am trying :( and I found some strange things, first that the autoexec_server.cfg file you mentioned to edit it in mine didn't have it, so I created a .cfg file named myServerConfig and I pasted it into the ddnet folder normally... so I managed to put settings like the "sv_register 1" you mentioned but when executable it gave me 2 errors as shown in the photo. I believe it's a configuration on my router that I did wrong please someone Would you help me?


image:
Attachments
erro.PNG
erro.PNG (30.16 KiB) Viewed 87 times
Last edited by jozcraft on Tue Jul 20, 2021 1:05 am, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest