LAN Server: Difference between revisions

Louis (talk | contribs)
m warning for sv_Register 1
added 2 methods of starting server
Line 34: Line 34:


=== Linux ===
=== Linux ===
<blockquote>1.Update the Server
 
{|- 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>
|- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-methodOne"
| 1.Update the Server


* <code>sudo apt update && apt upgrade</code>
* <code>sudo apt update && apt upgrade</code>
Line 62: Line 66:
* <code>mkdir build</code>
* <code>mkdir build</code>
* <code>cd build</code>
* <code>cd build</code>
* <code>cmake ..</code>
* <code>cmake -DCLIENT=OFF ..</code>
* <code>make -j$(nproc)</code>
* <code>make -j$(nproc)</code>


Line 76: Line 80:
* connect "Server-IP"
* connect "Server-IP"


9.Play</blockquote>More Information are available at https://github.com/ddnet/ddnet
9.Play
 
More Information are available at https://github.com/ddnet/ddnet
|}
 
{|- 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>
|- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-methodTwo"
| 1. Download binaries from [https://ddnet.tw/downloads/ DDNet download page]
 
2. Extract into folder
 
3. Open Server
 
* <code>./DDNet-Server</code>
 
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/
More Information about Port forwarding are available at http://portforward.com/