Page 1 of 2

How to host a server

Posted: Thu Apr 06, 2017 5:02 pm
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 :)

Re: [Shortguide] How to host a server

Posted: Thu Apr 06, 2017 6:08 pm
by Cellegen
Very helpful information its need to stick it in the helping section.

Re: How to host a server

Posted: Sat Apr 08, 2017 10:38 am
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

Re: How to host a server

Posted: Sun Apr 09, 2017 9:05 pm
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)

Re: How to host a server

Posted: Mon Jun 05, 2017 7:16 pm
by ThumpaDaBumpa
I did all the steps but it will not let me find it on the online tab. Every single step!

Re: How to host a server

Posted: Mon Jun 05, 2017 8:30 pm
by Cellegen
-Has people playing OFF in Teeworlds,
-Check out "autoexec_server.cfg",
-Check out also "DDNet-Server.exe" if it isn't starts.

Re: How to host a server

Posted: Thu Sep 24, 2020 8:12 am
by Betz@lel-$h@l0m
i have no clew how i find my local IP and my router.

Re: How to host a server

Posted: Mon May 24, 2021 10:36 pm
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 :)

Re: How to host a server

Posted: Tue Jul 20, 2021 12:58 am
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:

Re: How to host a server

Posted: Sun Jul 25, 2021 11:27 am
by deen
jozcraft wrote: Tue Jul 20, 2021 12:58 am 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?
Hi jozcraft. The file is now called autoexec_server.cfg and in data directory, but myServerConfig should also work. Indeed, this is a problem with your router or maybe your ISP is not allowing port forwarding at all. You can try opening your router's web page and configuring it to forward port 8303 udp. You can google for your specific router model for how to do that.