<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=RubiZockt</id>
	<title>RAGE Multiplayer Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.rage.mp/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=RubiZockt"/>
	<link rel="alternate" type="text/html" href="https://wiki.rage.mp/wiki/Special:Contributions/RubiZockt"/>
	<updated>2026-06-24T15:29:49Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.rage.mp/w/index.php?title=Getting_Started_with_Server&amp;diff=16048</id>
		<title>Getting Started with Server</title>
		<link rel="alternate" type="text/html" href="https://wiki.rage.mp/w/index.php?title=Getting_Started_with_Server&amp;diff=16048"/>
		<updated>2018-10-29T21:18:24Z</updated>

		<summary type="html">&lt;p&gt;RubiZockt: /* Setting up server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Introduction ==&lt;br /&gt;
&lt;br /&gt;
This brief tutorial will show you how to run your server on both Windows and Linux distributions.&lt;br /&gt;
&lt;br /&gt;
By default, the server makes use of port 22005 UDP for server access and the port after (here 22006) for the HTTP server hosting the client packages for the clients to download from.&amp;lt;br&amp;gt;      &lt;br /&gt;
So make sure to have done the ports forwarding on your router process and have also unblocked the ports on your firewall before running the server. &lt;br /&gt;
&lt;br /&gt;
=Bridge=&lt;br /&gt;
The following tutorial is found on [https://wiki.gtanet.work/index.php?title=Setting_up_the_Bridge_on_Linux/Windows Setting up the Bridge on Linux/Windows]&lt;br /&gt;
&lt;br /&gt;
=Windows=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
For a hassle-less installation and operation, the latest VC Redist is recommended to have.&lt;br /&gt;
&lt;br /&gt;
[https://aka.ms/vs/15/release/VC_redist.x64.exe Microsoft Visual C++ Redistributable 2017]&lt;br /&gt;
&lt;br /&gt;
==Setting up server==&lt;br /&gt;
1. Download the latest [https://cdn.rage.mp/client/updater.exe updater.exe]&lt;br /&gt;
&lt;br /&gt;
2. Run the downloaded &#039;&#039;&#039;updater.exe&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
3. Launch &#039;&#039;&#039;server.exe&#039;&#039;&#039; and you should be able to connect to it. &lt;br /&gt;
&lt;br /&gt;
=Linux=&lt;br /&gt;
==Prerequisite==&lt;br /&gt;
===Ubuntu===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo add-apt-repository ppa:ubuntu-toolchain-r/test&lt;br /&gt;
sudo apt-get update&lt;br /&gt;
sudo apt-get install libstdc++6&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Debian===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
echo &#039;deb http://httpredir.debian.org/debian testing main contrib non-free&#039; &amp;gt; /etc/apt/sources.list&lt;br /&gt;
apt-get update&lt;br /&gt;
apt-get install -y -t testing gcc&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Setting up server==&lt;br /&gt;
This bash snippet should automate the server installation.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
# Downloading server&lt;br /&gt;
wget https://cdn.rage.mp/lin/ragemp-srv-036.tar.gz&lt;br /&gt;
&lt;br /&gt;
# Extract the server files&lt;br /&gt;
tar -xzf ragemp-srv-036.tar.gz&lt;br /&gt;
&lt;br /&gt;
# accessing the directory&lt;br /&gt;
cd ragemp-srv-036&lt;br /&gt;
&lt;br /&gt;
# Set executable permission&lt;br /&gt;
chmod +x server&lt;br /&gt;
&lt;br /&gt;
# Run the server&lt;br /&gt;
./server&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Installing screen (Optional)==&lt;br /&gt;
For running the server in background, we recommend using screen mainly for its ease of use&lt;br /&gt;
&lt;br /&gt;
===Debian based (Ubuntu &amp;amp; derivatives)===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
sudo apt-get install screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===CentOS 6.x/7.x===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
yum install screen&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Starting the server===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
screen -dmS GTASERVER -L bash -c &#039;cd ~/srv &amp;amp;&amp;amp; ./server&#039; &amp;amp;&lt;br /&gt;
&lt;br /&gt;
# Parameter explanation&lt;br /&gt;
# screen -dmS = starts a separate shell without directly opening an interface towards it (detached mode). The S param defines a session name for the newly created session, so that it is easier to manage in the future.&lt;br /&gt;
# screen -L = basically logs whatever error that is shown by the server through the separate shell into a file for easier reference in the future.&lt;br /&gt;
# !IMPORTANT!&lt;br /&gt;
# Log output will be saved as screenlog._number_ in the server directory.&lt;br /&gt;
# &amp;amp;: IS IMPORTANT IF YOU WANT TO TERMINATE THE PROCESS GRACEFULLY&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Stopping the server===&lt;br /&gt;
To stop the server, there&#039;s usually two ways to do that, one that we call a &#039;&#039;&#039;graceful&#039;&#039;&#039; shutdown that sends the server a signal for termination and the other, well, a &#039;&#039;&#039;crash&#039;&#039;&#039; since it does not allow the code to run through the termination process correctly.&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;RECOMMENDED:&#039;&#039;&#039;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
kill $(ps h --ppid $(screen -ls | grep GTASERVER | cut -d. -f1) -o pid)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;NOT RECOMMENDED:&#039;&#039;&#039; It does not shut down the server gracefully&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
screen -S GTASERVER -X quit &lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Troubleshooting=&lt;br /&gt;
==Linux==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
./server: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.22&#039; not found (required by ./server)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Make sure GCC/G++ 6 or newer is installed, follow the [[Getting_Started_with_Server#Prerequisite|Prerequisite]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Tutorials]]&lt;/div&gt;</summary>
		<author><name>RubiZockt</name></author>
	</entry>
</feed>