LAN Server: Difference between revisions
"Update links from ddnet.tw to ddnet.org" |
Prepared the page for translation |
||
Line 1: | Line 1: | ||
<languages/> | |||
<translate> | |||
LAN servers are servers run locally by a player on their home network, which the hosting player has full control over. | LAN servers are servers run locally by a player on their home network, which the hosting player has full control over. | ||
Line 9: | Line 11: | ||
However, there are downsides to hosting a LAN server. They do require specific steps to allow friends to join, and often have unstable connections compared to official servers. Also note that LAN servers will only save ranks locally - if you finish a map on a LAN server, your rank won't translate to any official servers. | However, there are downsides to hosting a LAN server. They do require specific steps to allow friends to join, and often have unstable connections compared to official servers. Also note that LAN servers will only save ranks locally - if you finish a map on a LAN server, your rank won't translate to any official servers. | ||
== Creating and Joining a LAN Server == | == Creating and Joining a LAN Server == | ||
In the new client, creating a LAN server is very simple. | In the new client, creating a LAN server is very simple. | ||
Line 17: | Line 21: | ||
#* A black console window should pop up (this might take a moment). Copy the rcon password from this window. | #* A black console window should pop up (this might take a moment). Copy the rcon password from this window. | ||
# Navigate to the server browser, and join the new server in the LAN tab | # Navigate to the server browser, and join the new server in the LAN tab | ||
# After joining, press f2 to open the in-game server console and enter in your rcon password from earlier to get access to [[Settings and Commands|admin commands.]] | # After joining, press f2 to open the in-game server console and enter in your rcon password from earlier to get access to [[Special:MyLanguage/Settings and Commands|admin commands.]] | ||
# You're done! | # You're done! | ||
However, this only allows players on your local network to join. In other words - nobody else except you can join this LAN server online. To allow players to join online, you'll have to go through more steps. | However, this only allows players on your local network to join. In other words - nobody else except you can join this LAN server online. To allow players to join online, you'll have to go through more steps. | ||
== Setting Up Your LAN Server for Online Play == | == Setting Up Your LAN Server for Online Play == | ||
This next step requires you to port forward, which depends on the brand and type of router you have. | This next step requires you to port forward, which depends on the brand and type of router you have. | ||
Line 30: | Line 36: | ||
#* You can forward a port other than 8303 if you set up the desired port using <code>sv_port</code> in your server autoexecutable. However, the default port is 8303 for DDNet. So, if you're not sure what you're doing, just forward port 8303. | #* You can forward a port other than 8303 if you set up the desired port using <code>sv_port</code> in your server autoexecutable. However, the default port is 8303 for DDNet. So, if you're not sure what you're doing, just forward port 8303. | ||
# If you'd like your server to show up on the Internet tab, use the server setting <code>sv_register 1</code>, either in the f2 console or in the server autoexecutable. Note that this '''will''' make your IP publicly viewable if you host the server from your home network. So, use at your own risk. | # If you'd like your server to show up on the Internet tab, use the server setting <code>sv_register 1</code>, either in the f2 console or in the server autoexecutable. Note that this '''will''' make your IP publicly viewable if you host the server from your home network. So, use at your own risk. | ||
== Setting Up on Linux Server == | == Setting Up on Linux Server == | ||
=== Linux === | === Linux === | ||
Line 107: | Line 115: | ||
More Information about Port forwarding are available at http://portforward.com/ | More Information about Port forwarding are available at http://portforward.com/ | ||
== Server Settings and Maps == | == Server Settings and Maps == | ||
Everything settings and map-wise can be found in your Teeworlds folder. | Everything settings and map-wise can be found in your Teeworlds folder. | ||
Line 114: | Line 124: | ||
* On Linux, you can find it in (insert location here). | * On Linux, you can find it in (insert location here). | ||
* On Mac, you can find it in (insert location here). | * On Mac, you can find it in (insert location here). | ||
=== Server Autoexecutables === | === Server Autoexecutables === | ||
Server autoexecutables are files containing server settings that are automatically run every time you start your server. For example, this can be helpful if you want to keep a single rcon password to log in with every time. | Server autoexecutables are files containing server settings that are automatically run every time you start your server. For example, this can be helpful if you want to keep a single rcon password to log in with every time. | ||
Line 127: | Line 139: | ||
* sv_register 1 (shows the server on the Internet tab) | * sv_register 1 (shows the server on the Internet tab) | ||
* sv_test_cmds 1 (allows the use of cheat commands) | * sv_test_cmds 1 (allows the use of cheat commands) | ||
=== Server Maps === | === Server Maps === | ||
Server maps can be found in Teeworlds/maps. To load a map ingame, use the server command <code>sv_map <mapname></code>. | Server maps can be found in Teeworlds/maps. To load a map ingame, use the server command <code>sv_map <mapname></code>. | ||
== See also == | == See also == | ||
Line 135: | Line 150: | ||
* [https://wiki.archlinux.org/title/DDRaceNetwork#Server DDNet Server configuration in Arch Wiki] | * [https://wiki.archlinux.org/title/DDRaceNetwork#Server DDNet Server configuration in Arch Wiki] | ||
* https://github.com/ddnet/ddnet-maps - DDNet maps repository | * https://github.com/ddnet/ddnet-maps - DDNet maps repository | ||
</translate> |
Revision as of 17:21, 11 February 2023
LAN servers are servers run locally by a player on their home network, which the hosting player has full control over.
There are a lot of reasons to host and use a LAN server. They allow you to:
- Play privately with friends
- Host maps not found on public servers
- Test maps with admin commands and tools
- And much more!
However, there are downsides to hosting a LAN server. They do require specific steps to allow friends to join, and often have unstable connections compared to official servers. Also note that LAN servers will only save ranks locally - if you finish a map on a LAN server, your rank won't translate to any official servers.
Creating and Joining a LAN Server
In the new client, creating a LAN server is very simple.
- Navigate to the main menu
- Click on "Start Server"
- A black console window should pop up (this might take a moment). Copy the rcon password from this window.
- Navigate to the server browser, and join the new server in the LAN tab
- After joining, press f2 to open the in-game server console and enter in your rcon password from earlier to get access to admin commands.
- You're done!
However, this only allows players on your local network to join. In other words - nobody else except you can join this LAN server online. To allow players to join online, you'll have to go through more steps.
Setting Up Your LAN Server for Online Play
This next step requires you to port forward, which depends on the brand and type of router you have.
- Port forward the UDP port 8303 through your router.
- The easiest way to do this is to simply search "how to port forward" in your preferred search engine. This process usually requires you to log into your router interface, which, again, varies per household.
- Make sure to choose the UDP setting, and not the TCP or the TCP/UDP setting.
- You can forward a port other than 8303 if you set up the desired port using
sv_port
in your server autoexecutable. However, the default port is 8303 for DDNet. So, if you're not sure what you're doing, just forward port 8303.
- If you'd like your server to show up on the Internet tab, use the server setting
sv_register 1
, either in the f2 console or in the server autoexecutable. Note that this will make your IP publicly viewable if you host the server from your home network. So, use at your own risk.
Setting Up on Linux Server
Linux
Method 1 (Compiling server) [Show/Hide] |
1.Update the Server
2. Install git
3. Make a directory
3. Clone the repository from Github
4. Install all required dependencies
5. Go into ddnet folder
5. Compile DDNet
6. Open Server
7. forward a port to the server (default is 8303) 8. Connect via Client on the IP
9.Play More Information are available at https://github.com/ddnet/ddnet |
Method 2 (Using precompiled binaries) [Show/Hide] |
1. Download binaries from DDNet download page
2. Extract into folder 3. Open Server
4. Forward a port to the server (default is 8303) 5. Connect via Client on the IP
6. Play |
More Information about Port forwarding are available at http://portforward.com/
Server Settings and Maps
Everything settings and map-wise can be found in your Teeworlds folder.
- On Windows, you can find it in AppData/Roaming/Teeworlds.
- On Linux, you can find it in (insert location here).
- On Mac, you can find it in (insert location here).
Server Autoexecutables
Server autoexecutables are files containing server settings that are automatically run every time you start your server. For example, this can be helpful if you want to keep a single rcon password to log in with every time.
To create an autoexecutable, navigate to your Teeworlds folder (not your DDNet folder!), and create a file by the name of "autoexec_server.cfg". Make sure it is a .cfg extension file and not a .txt file or anything similar.
To add commands, simply edit the autoexec_server.cfg file and add each command on a new line. Here are examples of commonly used commands:
- sv_rcon_password <rcon password>
- sv_password <password to join>
- sv_name <server name>
- sv_register 1 (shows the server on the Internet tab)
- sv_test_cmds 1 (allows the use of cheat commands)
Server Maps
Server maps can be found in Teeworlds/maps. To load a map ingame, use the server command sv_map <mapname>
.
See also
- DDNet Server configuration in Arch Wiki
- https://github.com/ddnet/ddnet-maps - DDNet maps repository