LAN Server/tr: Difference between revisions

From DDraceNetwork
(Created page with "Bir yerel ağ sunucusu açmak için pek çok sebep vardır. Sebepler başlıca şunlardır:")
(Updating to match new version of source page)
 
Line 1: Line 1:
<languages/>
<languages />
 
Yerel Ağ sunucuları, ev ağında bir oyuncu tarafından yerel olarak çalıştırılan ve barındıran oyuncunun üzerinde tam kontrole sahip olduğu sunuculardır.
Yerel Ağ sunucuları, ev ağında bir oyuncu tarafından yerel olarak çalıştırılan ve barındıran oyuncunun üzerinde tam kontrole sahip olduğu sunuculardır.


Bir yerel ağ sunucusu açmak için pek çok sebep vardır. Sebepler başlıca şunlardır:
Bir yerel ağ sunucusu açmak için pek çok sebep vardır. Sebepler başlıca şunlardır:


<div class="mw-translate-fuzzy">
* Arkadaşlarınızla gizli bir şekilde oynamak
* Arkadaşlarınızla gizli bir şekilde oynamak
* Herkese açık sunucularda olmayan haritaları oynamak
* Herkese açık sunucularda olmayan haritaları oynamak
* Yönetici komutları ve araçlarıyla haritaları test etmek
* Yönetici komutları ve araçlarıyla haritaları test etmek
* Ve daha fazlası!
* Ve daha fazlası!
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
Line 15: Line 18:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
== Creating and Joining a LAN Server ==
==Creating and Joining a LAN Server==
</div>
</div>


Line 23: Line 26:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
# Navigate to the main menu
#Navigate to the main menu
# Click on "Start Server"
#Click on "Start Server"
#* 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 [[Special:MyLanguage/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!
</div>
</div>


Line 37: Line 40:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
== Setting Up Your LAN Server for Online Play ==
==Setting Up Your LAN Server for Online Play==
</div>
</div>


Line 45: Line 48:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
# Port forward the UDP port 8303 through your router.
#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.
#*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.
#*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.
#*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.
Some ISPs might not provide you with a full native IPv4 address, but instead use carrier-grade NAT, and will thus not support forwarding ports. In this case you can't make your LAN server available for online play.
Some ISPs might not provide you with a full native IPv4 address, but instead use carrier-grade NAT, and will thus not support forwarding ports. In this case you can't make your LAN server available for online play.
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
== Setting Up on Linux Server ==
==Setting Up on Linux Server==
</div>
</div>




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


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
{|- class="wikitable" style="width:100%;"
{| class="wikitable" style="width:100%;" -
| <div style=" display: flex; justify-content: space-between;"><div>Method 1 (Compiling server)</div> <div class="mw-customtoggle-methodOne" style="color:#0B0080;"><small>[Show/Hide]</small></div></div>
|<div style=" display: flex; justify-content: space-between;"><div>Method 1 (Compiling server)</div> <div class="mw-customtoggle-methodOne" style="color:#0B0080;"><small>[Show/Hide]</small></div></div>
|- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-methodOne"
|- class="mw-collapsible mw-collapsed"
| 1.Update the Server
|1.Update the Server
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* <code>sudo apt update && apt upgrade</code>
*<code>sudo apt update && apt upgrade</code>
</div>
</div>


Line 78: Line 81:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* <code>sudo apt install git</code>
*<code>sudo apt install git</code>
</div>
</div>


Line 86: Line 89:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* <code>mkdir DDNet-Server</code>
*<code>mkdir DDNet-Server</code>
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
3. Clone the repository from Github
4. Clone the repository from Github
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* <code>git clone --recursive --depth=1 <nowiki>https://github.com/ddnet/ddnet</nowiki></code>
*<code>git clone --recursive --depth=1 <nowiki>https://github.com/ddnet/ddnet</nowiki></code>
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
4. Install all required dependencies
5. Install all required dependencies
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* <code>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</code>
*<code>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</code>
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
5. Go into ddnet folder
6. Go into ddnet folder
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* <code>cd ddnet</code>
*<code>cd ddnet</code>
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
5. Compile DDNet
7. Compile DDNet
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* <code>mkdir build</code>
*<code>mkdir build</code>
* <code>cd build</code>
*<code>cd build</code>
* <code>cmake -DCLIENT=OFF ..</code>
*<code>cmake -DCLIENT=OFF ..</code>
* <code>make -j$(nproc)</code>
*<code>make -j$(nproc)</code>
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
6. Open Server
8. Open Server
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* <code>./DDNet-Server</code>
*<code>./DDNet-Server</code>
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
7. forward a port to the server (default is 8303)
9. forward a port to the server (default is 8303)
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
8. Connect via Client on the IP
10. Connect via Client on the IP
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* Press F1
*Press F1
* connect "Server-IP"
*connect "Server-IP"
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
9.Play
11.Play
</div>
</div>


Line 155: Line 158:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
{|- class="wikitable" style="width:100%;"
{| class="wikitable" style="width:100%;" -
| <div style=" display: flex; justify-content: space-between;"><div>Method 2 (Using precompiled binaries)</div> <div class="mw-customtoggle-methodTwo" style="color:#0B0080;"><small>[Show/Hide]</small></div></div>
|<div style=" display: flex; justify-content: space-between;"><div>Method 2 (Using precompiled binaries)</div> <div class="mw-customtoggle-methodTwo" style="color:#0B0080;"><small>[Show/Hide]</small></div></div>
|- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-methodTwo"
|- class="mw-collapsible mw-collapsed"
| 1. Download binaries from [https://ddnet.org/downloads/ DDNet download page]
|1. Download binaries from [https://ddnet.org/downloads/ DDNet download page]
</div>
</div>


Line 170: Line 173:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* <code>./DDNet-Server</code>
*<code>./DDNet-Server</code>
</div>
</div>


Line 182: Line 185:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* Press F1
*Press F1
* connect "Server-IP"
*connect "Server-IP"
</div>
</div>


Line 197: Line 200:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
== Server Settings and Maps ==
==Server Settings and Maps==
</div>
</div>


Line 205: Line 208:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* On Windows, you can find it in AppData/Roaming/Teeworlds.
*On Windows, you can find it in AppData/Roaming/Teeworlds.
* 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).
</div>
</div>




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


Line 228: Line 231:


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* sv_rcon_password <rcon password>
*sv_rcon_password <rcon password>
* sv_password <password to join>
*sv_password <password to join>
* sv_name <server name>
*sv_name <server name>
* 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)
</div>
</div>




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


Line 246: Line 249:


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


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* [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
</div>
</div>
[[Category:Tutorial{{#translation:}}]]
[[Category:Tutorial{{#translation:}}]]

Latest revision as of 16:21, 8 September 2023

Yerel Ağ sunucuları, ev ağında bir oyuncu tarafından yerel olarak çalıştırılan ve barındıran oyuncunun üzerinde tam kontrole sahip olduğu sunuculardır.

Bir yerel ağ sunucusu açmak için pek çok sebep vardır. Sebepler başlıca şunlardır:

  • Arkadaşlarınızla gizli bir şekilde oynamak
  • Herkese açık sunucularda olmayan haritaları oynamak
  • Yönetici komutları ve araçlarıyla haritaları test etmek
  • Ve daha fazlası!

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.

  1. Navigate to the main menu
  2. Click on "Start Server"
    • A black console window should pop up (this might take a moment). 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. Note that this will make your IP publicly viewable if you host the server from your home network. So, use at your own risk.

Some ISPs might not provide you with a full native IPv4 address, but instead use carrier-grade NAT, and will thus not support forwarding ports. In this case you can't make your LAN server available for online play.

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

4. Clone the repository from Github

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

5. 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

6. Go into ddnet folder

  • cd ddnet

7. Compile DDNet

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

8. Open Server

  • ./DDNet-Server

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

10. Connect via Client on the IP

  • Press F1
  • connect "Server-IP"

11.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