LAN Server: Difference between revisions

From DDraceNetwork
(started the page)
 
(→‎Creating a LAN Server: just to save my work)
Line 10: Line 10:
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.
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.


== Creating 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.
 
# Navigate to the main menu
# Click on "Start Server"
#* A black console window should pop up. 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 [[Settings and Commands|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 <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.
 
== Maps and Server Settings ==
Everything maps and settings-wise can be found in your Teeworlds folder.
 
* On Windows, you can find it in %appdata%/Teeworlds.
* On Linux, you can find it in (insert location here).
* On Mac, you can find it in (insert location here).

Revision as of 20:43, 11 December 2021

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.

Creating and Joining a LAN Server

In the new client, creating a LAN server is very simple.

  1. Navigate to the main menu
  2. Click on "Start Server"
    • A black console window should pop up. Copy the rcon password from this window.
  3. Navigate to the server browser, and join the new server in the LAN tab
  4. 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.
  5. 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.

  1. 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.
  2. 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.

Maps and Server Settings

Everything maps and settings-wise can be found in your Teeworlds folder.

  • On Windows, you can find it in %appdata%/Teeworlds.
  • On Linux, you can find it in (insert location here).
  • On Mac, you can find it in (insert location here).