LAN Server/es: Difference between revisions

From DDraceNetwork
(Created page with "<languages/> Servidores LAN son servidores ejecutados localmente por un jugador en su red doméstica, que el jugador anfitrión tiene el control total. Hay muchas razones para alojar y utilizar un servidor LAN. Te permiten: * Jugar en privado con amigos. * Hostear mapas que no se encuentran en servidores públicos. * Probar mapas con comandos de administración y herramientas. * Y mucho más!. No obstante, alojar un servidor LAN tiene sus inconvenientes. Para que sus...")
 
(Created page with "== Crear y unirse a un servidor LAN ==")
Line 15: Line 15:
== Crear y unirse a un servidor LAN ==
== Crear y unirse a un servidor LAN ==


<div lang="en" dir="ltr" class="mw-content-ltr">
En el nuevo cliente, crear un servidor LAN es muy sencillo.  
In the new client, creating a LAN server is very simple.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
# Navega al menú principal.
# Navigate to the main menu
# Haz clic en "Iniciar servidor"
# Click on "Start Server"
#* Debería aparecer una ventana de consola negra (puede tardar un momento). Copie la contraseña rcon de esa ventana.
#* A black console window should pop up (this might take a moment). Copy the rcon password from this window.
# Navega al explorador de servidores, y únete al nuevo servidor en la pestaña LAN.
# Navigate to the server browser, and join the new server in the LAN tab
# Después de unirte, presiona f2 para abrir la consola del servidor en el juego y escribe la contraseña rcon anteriormente obtenida para tener acceso a los [[Special:MyLanguage/Settings and Commands|comandos de administrador.]]
# 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.]]
# ¡Has terminado!.
# You're done!
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Sin embargo, esto solo permite unirse a los jugadores de tu red local. En otras palabras, nadie más que tú puede conectarse a este servidor LAN. Para permitir que los jugadores se unan en línea, tendrás que seguir más pasos.
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.
</div>




<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Setting_Up_Your_LAN_Server_for_Online_Play"></span>
== Setting Up Your LAN Server for Online Play ==
== Configuración del servidor LAN para jugar en línea ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Este siguiente paso requiere que reenvíes puertos, lo que depende de la marca y el tipo de router que tengas.
This next step requires you to port forward, which depends on the brand and type of router you have.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">

Revision as of 22:48, 19 March 2023

Servidores LAN son servidores ejecutados localmente por un jugador en su red doméstica, que el jugador anfitrión tiene el control total.

Hay muchas razones para alojar y utilizar un servidor LAN. Te permiten:

  • Jugar en privado con amigos.
  • Hostear mapas que no se encuentran en servidores públicos.
  • Probar mapas con comandos de administración y herramientas.
  • Y mucho más!.

No obstante, alojar un servidor LAN tiene sus inconvenientes. Para que sus amigos puedan entrar, es necesario seguir una serie de pasos específicos y a menudo tienen conexiones inestables en comparación con los servidores oficiales. Ten en cuenta también que los servidores LAN sólo guardarán los rangos localmente: si terminas un mapa en un servidor LAN, tu rango no se trasladará a ningún servidor oficial.


Crear y unirse a un servidor LAN

En el nuevo cliente, crear un servidor LAN es muy sencillo.

  1. Navega al menú principal.
  2. Haz clic en "Iniciar servidor"
    • Debería aparecer una ventana de consola negra (puede tardar un momento). Copie la contraseña rcon de esa ventana.
  3. Navega al explorador de servidores, y únete al nuevo servidor en la pestaña LAN.
  4. Después de unirte, presiona f2 para abrir la consola del servidor en el juego y escribe la contraseña rcon anteriormente obtenida para tener acceso a los comandos de administrador.
  5. ¡Has terminado!.

Sin embargo, esto solo permite unirse a los jugadores de tu red local. En otras palabras, nadie más que tú puede conectarse a este servidor LAN. Para permitir que los jugadores se unan en línea, tendrás que seguir más pasos.


Configuración del servidor LAN para jugar en línea

Este siguiente paso requiere que reenvíes puertos, lo que depende de la marca y el tipo de router que tengas.

  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. 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
  • sudo apt update && apt upgrade

2. Install git

  • sudo apt install git

3. Make a directory

  • mkdir DDNet-Server

3. Clone the repository from Github

  • git clone --recursive --depth=1 https://github.com/ddnet/ddnet

4. Install all required dependencies

  • sudo apt install build-essential cmake git libcurl4-openssl-dev libssl-dev libfreetype6-dev libglew-dev libnotify-dev libogg-dev libopus-dev libopusfile-dev libpnglite-dev libsdl2-dev libsqlite3-dev libwavpack-dev python google-mock

5. Go into ddnet folder

  • cd ddnet

5. Compile DDNet

  • mkdir build
  • cd build
  • cmake -DCLIENT=OFF ..
  • make -j$(nproc)

6. Open Server

  • ./DDNet-Server

7. forward a port to the server (default is 8303)

8. Connect via Client on the IP

  • Press F1
  • connect "Server-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

  • ./DDNet-Server

4. Forward a port to the server (default is 8303)

5. Connect via Client on the IP

  • Press F1
  • connect "Server-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