{"id":114329,"date":"2024-08-20T09:22:08","date_gmt":"2024-08-20T09:22:08","guid":{"rendered":"\/tutorials\/?p=114329"},"modified":"2026-07-11T14:32:48","modified_gmt":"2026-07-11T14:32:48","slug":"how-to-make-a-gmod-server","status":"publish","type":"post","link":"\/ng\/tutorials\/how-to-make-a-gmod-server\/","title":{"rendered":"How to host a dedicated Garry\u2019s Mod (GMod) server"},"content":{"rendered":"<p>You can host a Garry&rsquo;s Mod (GMod) server using Hostinger Game Panel or by setting it up manually on a VPS. Both methods create a dedicated multiplayer server where you can play with friends, add custom maps and addons, set your own rules, and keep the world running even when you&rsquo;re not in the game.<\/p><p>The best method depends on how much control you want. Hostinger Game Panel is the easier option because it lets you install and manage your GMod server without commands. Manual setup takes more time, but gives you more flexibility over the server environment, configuration files, firewall rules, and startup settings.<\/p><p>In this guide, we&rsquo;ll show you how to make a GMod server using both methods. We&rsquo;ll also cover the basic VPS requirements, server configuration, firewall setup, and how to connect to your new Garry&rsquo;s Mod server.<\/p><h2 class=\"wp-block-heading\" id=\"h-prerequisites\">Prerequisites<\/h2><p>To <a href=\"\/ng\/tutorials\/dedicated-game-server-guide\/\">set up a dedicated gaming server<\/a> for Garry&rsquo;s Mod, you need will need the following:<\/p><ul class=\"wp-block-list\">\n<li>VPS with multi-core CPU, <strong>4 GB RAM<\/strong>, and <strong>10 GB storage<\/strong><\/li>\n\n\n\n<li>Server IP address SSH access for manual setup<\/li>\n\n\n\n<li>Debian 12 for the manual tutorial Steam<\/li>\n\n\n\n<li>CMD for manual setup Open ports, especially <strong>27005-27015<\/strong><\/li>\n\n\n\n<li>Steam Game Server Login Token, GSLT<\/li>\n\n\n\n<li>Garry&rsquo;s Mod client to test the connection<\/li>\n<\/ul><p>You must be able to access the server remotely <a href=\"\/ng\/tutorials\/how-to-use-putty-ssh\/\">using an SSH client like PuTTY<\/a> or Terminal. You should also ideally understand basic Linux commands and system management.<\/p><p>Alternatively, use <a href=\"\/ng\/vps\/game-server-hosting\">Hostinger Game Panel hosting<\/a>, which lets you easily install and maintain a dedicated server for various games without commands. Here&rsquo;s a quick comparison between the two method:<\/p><figure tabindex=\"0\" class=\"wp-block-table\"><table><thead><tr><th>Method<\/th><th>Best for<\/th><th>Difficulty<\/th><th>Control<\/th><\/tr><\/thead><tbody><tr><td>Manual VPS setup<\/td><td>Users who want custom OS\/software control<\/td><td>Advanced<\/td><td>Higher<\/td><\/tr><tr><td>Hostinger Game Panel<\/td><td>Beginners, fast setup, no commands<\/td><td>Easy<\/td><td>Lower<\/td><\/tr><\/tbody><\/table><\/figure><p>Should you need to use commands, our <a href=\"\/blog\/vps-ai-assistant\/\">VPS AI assistant<\/a>, Kodee, can write them quickly with simple prompts. Using the <strong>Browser terminal <\/strong>feature, you can also easily connect to Hostinger game servers via a web browser.<\/p><div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-game-server-hosting\" href=\"\/ng\/vps\/game-server-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/Game_panel_in-text-banner-2-1.png\/public\" alt=\"\" class=\"wp-image-103282\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/Game_panel_in-text-banner-2-1.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/Game_panel_in-text-banner-2-1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/Game_panel_in-text-banner-2-1.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/Game_panel_in-text-banner-2-1.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><\/div><h2 class=\"wp-block-heading\" id=\"h-how-to-manually-host-a-garry-s-mod-server\">How to manually host a Garry&rsquo;s Mod server<\/h2><p>Hosting a GMod server manually is more complicated than using our Game Panel. However, you might prefer this method if you want to use different software or operating systems. In this tutorial, we will use <strong>Debian 12<\/strong>.<\/p><h3 class=\"wp-block-heading\" id=\"h-1-connect-via-ssh-and-create-a-user\">1. Connect via SSH and create a user<\/h3><p>Before installing a Garry&rsquo;s Mod server, connect to your VPS using PuTTY, Terminal, or <a href=\"https:\/\/support.hostinger.com\/en\/articles\/7978544-how-to-use-the-browser-terminal\">Browser terminal<\/a>. At Hostinger, you can obtain the SSH login credentials by going to<strong> hPanel<\/strong> &rarr; <strong>VPS<\/strong> &rarr; <strong>Manage<\/strong>. The information is located in the <strong>VPS details<\/strong> section at the bottom of your <strong>VPS Overview<\/strong> page.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5acda642702\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5acda642702\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"2044\" height=\"654\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/debian-game-server-ssh-credentials-1.png\/public\" alt=\"Server SSH access credentials on hPanel's VPS Overview page\" class=\"wp-image-126008\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/debian-game-server-ssh-credentials-1.png\/w=2044,fit=scale-down 2044w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/debian-game-server-ssh-credentials-1.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/debian-game-server-ssh-credentials-1.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/debian-game-server-ssh-credentials-1.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/debian-game-server-ssh-credentials-1.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/debian-game-server-ssh-credentials-1.png\/w=1536,fit=scale-down 1536w\" sizes=\"auto, (max-width: 2044px) 100vw, 2044px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>By default, you will log in as <strong>root,<\/strong> who can run any administrative command without confirmation. Using this user might be risky since you are more prone to run the wrong utilities by accident, potentially causing misconfiguration issues.<\/p><p>To minimize the risk of accidental execution, use a superuser. Such an account requires the <a href=\"\/ng\/tutorials\/sudo-and-the-sudoers-file\/\"><strong>sudo<\/strong><\/a> prefix and its password to run administrative commands.<\/p><p>In this tutorial, we will create the <strong>gmod-admin<\/strong> superuser using this command:<\/p><pre class=\"wp-block-preformatted\">adduser gmod-admin<\/pre><p>Enter a new password and other account details. Now, add the new user to the <strong>sudo<\/strong> group to grant it the permissions to run administrative commands:<\/p><pre class=\"wp-block-preformatted\">usermod -a -G sudo gmod-admin<\/pre><p>Switch to the new user using the following command:<\/p><pre class=\"wp-block-preformatted\">su gmod-admin<\/pre><p>Once logged in, your command line should change to the new username. Since you are still in the root account&rsquo;s home directory, enter <strong>cd <\/strong>to switch to the new user&rsquo;s folder.<\/p><h3 class=\"wp-block-heading\" id=\"h-2-download-and-install-steamcmd\">2. Download and install SteamCMD<\/h3><p><strong>SteamCMD<\/strong> is the command-line interface version of the Steam game client. It enables you to install and update dedicated game server components in an environment without a graphical interface, like a VPS.<\/p><p>Here&rsquo;s how to install SteamCMD on your Linux system:<\/p><ol class=\"wp-block-list\">\n<li>Install the dependencies &ndash; software that SteamCMD requires to run properly:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo apt install software-properties-common gcc-multilib&nbsp;<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Enable the non-free repository to avoid errors using this command:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo add-apt-repository non-free<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Run the following commands subsequently to enable the support for the 32-bit SteamCMD package, avoiding incompatibility issues:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo dpkg --add-architecture i386<br><br>sudo apt update -y<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Install the SteamCMD client and other complementary libraries using this command:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">sudo apt install steamcmd libtinfo5:i386 libncurses5:i386 -y&nbsp;<\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>Accept the terms and conditions to proceed with the installation.<\/li>\n\n\n\n<li>Confirm whether the SteamCMD installation was successful by running this command. It might prompt the software to download updates:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">steamcmd<\/pre><p>If your command line changes to<strong> Steam&gt;<\/strong>, it means SteamCMD is installed and running properly.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5acda643896\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5acda643896\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1318\" height=\"346\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/steamcmd-launches-on-a-vps.png\/w=1024,h=1024,fit=scale-down\" alt=\"SteamCMD launches on a VPS\" class=\"wp-image-114338\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/steamcmd-launches-on-a-vps.png\/w=1318,fit=scale-down 1318w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/steamcmd-launches-on-a-vps.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/steamcmd-launches-on-a-vps.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/steamcmd-launches-on-a-vps.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/steamcmd-launches-on-a-vps.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1318px) 100vw, 1318px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><h3 class=\"wp-block-heading\" id=\"h-3-download-gmod-server-files\">3. Download GMod server files<\/h3><p>After entering SteamCMD, we can start installing the GMod server components. Here&rsquo;s how to do so:<\/p><ol class=\"wp-block-list\">\n<li>Skip this step if you want to use the default folder. Otherwise, run the following command to force SteamCMD to download the server components in another directory. Replace <strong>path\/to\/dir<\/strong> with your desired path:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">force_install_dir path\/to\/dir<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Connect to the Steam client using this command. You can use another account, but we will do so as an <strong>anonymous<\/strong>:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">login anonymous<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Download the GMod server files using this command:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">app_update 4020<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Wait until the process is complete, which should take a few minutes, depending on your internet connection. Once finished, run this command to exit SteamCMD:<\/li>\n<\/ol><pre class=\"wp-block-preformatted\">quit&nbsp;<\/pre><p>For this tutorial, we didn&rsquo;t specify a custom installation path. This means SteamCMD downloaded the server components into the default directory, namely <strong>Steam\/steamapps\/common\/GarrysModDS<\/strong>.<\/p><p>After the installation, you can also run the <strong>app_update<\/strong> command in the SteamCMD shell to update the server components. However, doing so might overwrite existing settings.<\/p><h3 class=\"wp-block-heading\" id=\"h-4-configure-the-server\">4. Configure the server<\/h3><p>Before starting the GMod server, we must adjust several settings to ensure its functionality. Start by installing a text editor to edit the configuration file. For this tutorial, we will <a href=\"\/ng\/tutorials\/how-to-install-and-use-nano-text-editor\/\">use Nano<\/a>:<\/p><pre class=\"wp-block-preformatted\">sudo apt install nano&nbsp;<\/pre><p>Check the Nano version to confirm it is installed properly:<\/p><pre class=\"wp-block-preformatted\">nano --version<\/pre><p>GMod has several files defining different game and server settings, but we will focus on <strong>server.cfg <\/strong>since it is the main one. All of them are in the <strong>GarryModDS\/garrysmod\/cfg<\/strong> directory.<\/p><p>Since we install the server components in the default location, we will open the file using the following command:<\/p><pre class=\"wp-block-preformatted\">sudo nano Steam\/steamapps\/common\/GarrysModDS\/garrysmod\/cfg\/server.cfg<\/pre><p>Remember to replace <strong>Steam\/steamapps\/common<\/strong> if you use a custom installation path.<\/p><p><div class=\"announcement-block announcement-block--important\">\n            <span class=\"announcement-block__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n                          d=\"M12 22.5C17.799 22.5 22.5 17.799 22.5 12C22.5 6.20101 17.799 1.5 12 1.5C6.20101 1.5 1.5 6.20101 1.5 12C1.5 17.799 6.20101 22.5 12 22.5ZM13.637 7.65198C13.637 6.74791 12.9041 6.01501 12 6.01501C11.0959 6.01501 10.363 6.74791 10.363 7.65198C10.5335 9.53749 10.875 13.383 10.875 13.383C10.875 14.0043 11.3787 14.508 12 14.508C12.6213 14.508 13.125 14.0043 13.125 13.383V13.38L13.637 7.65198ZM11.9927 15.714C11.3714 15.714 10.8677 16.2177 10.8677 16.839C10.8677 17.4603 11.3714 17.964 11.9927 17.964H12.0073C12.6286 17.964 13.1323 17.4603 13.1323 16.839C13.1323 16.2177 12.6286 15.714 12.0073 15.714H11.9927Z\"\n                          fill=\"#FEA419\"\/>\n                <\/svg>\n                Important\n            <\/span>\n            <p class=\"announcement-block__content\">\n                <strong>Important!<\/strong> If you encounter an error, check capitalization since Linux commands are case-sensitive.\n            <\/p><\/div>\n\n\n\n<\/p><p>By default, this file is empty, and you must manually add the parameters. Here are several important settings:<\/p><ul class=\"wp-block-list\">\n<li><strong>hostname<\/strong> &ndash; the name of your server in the multiplayer room list.<\/li>\n\n\n\n<li><strong>sv_password <\/strong>&ndash; the password for connecting to your server.<\/li>\n\n\n\n<li><strong>rcon_password<\/strong> &ndash; the RCON protocol password that grants admin access to your server.&nbsp;<\/li>\n\n\n\n<li><strong>sbox_playershurtplayers<\/strong> &ndash; toggle for the player vs player mode.<\/li>\n\n\n\n<li><strong>sbox_maxprops<\/strong> &ndash; the limit of props a player can spawn.<\/li>\n<\/ul><p>Since GMod has plenty of parameters, we recommend generating the configuration using an online tool like <a href=\"https:\/\/www.yourdevtools.com\/gmod\/servercfg\">YourDevTools&rsquo; Garry&rsquo;s Mod Server.cfg generator<\/a>. Simply enter your desired value in each field and click <strong>Generate Code<\/strong>.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5acda64492a\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5acda64492a\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"542\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/your-dev-tools-generates-gmod-server-configuration-code.png\/w=1024,h=1024,fit=scale-down\" alt=\"Your Dev Tools generates GMod server configuration code\" class=\"wp-image-114340\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/your-dev-tools-generates-gmod-server-configuration-code.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/your-dev-tools-generates-gmod-server-configuration-code.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/your-dev-tools-generates-gmod-server-configuration-code.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/your-dev-tools-generates-gmod-server-configuration-code.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/your-dev-tools-generates-gmod-server-configuration-code.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>Click <strong>Copy Code<\/strong> and paste it to the <strong>server.cfg<\/strong> file. Once finished, press<strong> Ctrl + X<\/strong>, <strong>Y<\/strong>, and <strong>Enter <\/strong>to save the changes.<\/p><h3 class=\"wp-block-heading\" id=\"h-5-configure-firewall\">5. Configure firewall<\/h3><p>Before running the server, we must open a specific port number &ndash; the endpoint that players will use to connect to your GMod host. This game uses anywhere between port <strong>27005 <\/strong>to <strong>27015<\/strong>.<\/p><p>At Hostinger, you can easily do so without commands via hPanel:<\/p><ol class=\"wp-block-list\">\n<li>Log in to <strong>hPanel <\/strong>and click<strong> VPS<\/strong> from the top menu. Click <strong>Manage<\/strong> on your VPS.<\/li>\n\n\n\n<li>Navigate to the <strong>sidebar<\/strong> &rarr;<strong> Settings<\/strong> &rarr; <strong>Security<\/strong> &rarr; <strong>Firewall<\/strong>.<\/li>\n\n\n\n<li>Click the<strong> Add<\/strong> <strong>Firewall <\/strong>button and enter a name. Click <strong>Create<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5acda645712\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5acda645712\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"431\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/firewall-configuration-menu-in-hpanel.png\/w=1024,h=1024,fit=scale-down\" alt=\"Firewall configuration menu in hPanel\" class=\"wp-image-114341\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/firewall-configuration-menu-in-hpanel.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/firewall-configuration-menu-in-hpanel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/firewall-configuration-menu-in-hpanel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/firewall-configuration-menu-in-hpanel.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/firewall-configuration-menu-in-hpanel.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Click the <strong>three-dot icon<\/strong> on your new Firewall configuration and select <strong>Edit<\/strong>.<\/li>\n\n\n\n<li>Add <strong>two<\/strong> rules that accept connections from anywhere to port <strong>27005-27015<\/strong> <strong>UDP<\/strong> and <strong>TCP<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5acda646497\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5acda646497\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"284\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-firewall-configuration-in-hpanel.png\/w=1024,h=1024,fit=scale-down\" alt=\"GMod firewall configuration in hPanel\" class=\"wp-image-114342\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-firewall-configuration-in-hpanel.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-firewall-configuration-in-hpanel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-firewall-configuration-in-hpanel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-firewall-configuration-in-hpanel.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-firewall-configuration-in-hpanel.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>Once finished, click the <strong>arrow <\/strong>icon on the top left to return to the Firewall menu. Click the <strong>toggle<\/strong> &rarr; <strong>Activate<\/strong> to enable your new firewall rule.&nbsp;<\/li>\n<\/ol><p>Alternatively, you can forward port using Debian&rsquo;s <a href=\"\/ng\/tutorials\/how-to-configure-firewall-on-ubuntu-using-ufw\/\">Uncomplicated Firewall<\/a> (UFW). Begin by installing the tool using this command:<\/p><pre class=\"wp-block-preformatted\">sudo apt install ufw -y<\/pre><p>Then, open the SSH and your game server ports:<\/p><pre class=\"wp-block-preformatted\">sudo ufw allow 22\/tcp<br><br>sudo ufw allow 27005:27015\/udp<br><br>sudo ufw allow 27005:27015\/tcp<\/pre><p>Enable UFW to apply the rules using the following command. If you have UFW installed already, replace <strong>enable<\/strong> with <strong>reload<\/strong>:<\/p><pre class=\"wp-block-preformatted\">sudo ufw enable<\/pre><p>        <div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Ask Kodee                <\/p>\n            <\/div>\n            <p class=\"protip__content\">Hostinger VPS users can ask our <strong>Kodee AI assistant<\/strong> to help set up a firewall rule for their game server. For example, ask \"Create and activate a new firewall rule that allows connection to <strong>port 27005 to 27015 TCP\/UDP<\/strong> from any IP address.\"<\/p>\n                    <\/div>\n        \n\n\n\n<\/p><h3 class=\"wp-block-heading\" id=\"h-6-start-your-gmod-server\">6. Start your GMod server<\/h3><p>Once the configuration process is finished, let&rsquo;s launch the GMod server. While you can run the server directly from your main command-line shell, it will shut down when you close the SSH connection.<\/p><p>Since it is inconvenient, we recommend starting the GMod server using a Terminal multiplexer like <a href=\"\/ng\/tutorials\/how-to-install-and-use-linux-screen\/\">Linux Screen<\/a>. It keeps your server running in the background even after you disconnect the SSH session. Install the tool using this command:<\/p><pre class=\"wp-block-preformatted\">sudo apt install screen -y<\/pre><p>Now, enter the following command to start a new virtual Terminal session:<\/p><pre class=\"wp-block-preformatted\">screen<\/pre><p>After entering the virtual session, navigate to your GMod server installation folder using the <strong>cd<\/strong> command:<\/p><pre class=\"wp-block-preformatted\">cd Steam\/steamapps\/common\/GarrysModDS<\/pre><p>To start the server, you must run the <strong>srcds_run<\/strong> script and specify in-game settings. In the following example, we will set the player limit to <strong>12<\/strong> and use the <strong>flatgrass<\/strong> map:<\/p><pre class=\"wp-block-preformatted\">.\/srcds_run -game garrysmod +maxplayers 12 +map gm_flatgrass<\/pre><p><div class=\"announcement-block announcement-block--important\">\n            <span class=\"announcement-block__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path fill-rule=\"evenodd\" clip-rule=\"evenodd\"\n                          d=\"M12 22.5C17.799 22.5 22.5 17.799 22.5 12C22.5 6.20101 17.799 1.5 12 1.5C6.20101 1.5 1.5 6.20101 1.5 12C1.5 17.799 6.20101 22.5 12 22.5ZM13.637 7.65198C13.637 6.74791 12.9041 6.01501 12 6.01501C11.0959 6.01501 10.363 6.74791 10.363 7.65198C10.5335 9.53749 10.875 13.383 10.875 13.383C10.875 14.0043 11.3787 14.508 12 14.508C12.6213 14.508 13.125 14.0043 13.125 13.383V13.38L13.637 7.65198ZM11.9927 15.714C11.3714 15.714 10.8677 16.2177 10.8677 16.839C10.8677 17.4603 11.3714 17.964 11.9927 17.964H12.0073C12.6286 17.964 13.1323 17.4603 13.1323 16.839C13.1323 16.2177 12.6286 15.714 12.0073 15.714H11.9927Z\"\n                          fill=\"#FEA419\"\/>\n                <\/svg>\n                Important\n            <\/span>\n            <p class=\"announcement-block__content\">\n                <strong>Important!<\/strong> Avoid using <strong>root<\/strong> to start your game server since it might expose the account to the public internet, creating a security risk.\n            <\/p><\/div>\n\n\n<\/p><div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a5acda647818\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5acda647818\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1330\" height=\"294\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/command-line-shows-that-vac-mode-is-running.png\/w=1024,h=1024,fit=scale-down\" alt=\"command line shows that VAC mode is running\" class=\"wp-image-114344\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/command-line-shows-that-vac-mode-is-running.png\/w=1330,fit=scale-down 1330w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/command-line-shows-that-vac-mode-is-running.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/command-line-shows-that-vac-mode-is-running.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/command-line-shows-that-vac-mode-is-running.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/command-line-shows-that-vac-mode-is-running.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1330px) 100vw, 1330px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><p>That&rsquo;s it! If the &ldquo;<strong>VAC secure mode is activated<\/strong>&rdquo; line appears on your command line, the server is online and running properly. Press <strong>Ctrl + A<\/strong> and <strong>D<\/strong> to quit the Screen session. If you want to reconnect, enter this command:<\/p><pre class=\"wp-block-preformatted\">screen -r<\/pre><p>Optionally, you can add your <strong>Game Server Login Token<\/strong> (GSLT) during the startup to authenticate the server. Otherwise, GMod will put it at the bottom of the multiplayer room list. You can do so using these steps:<\/p><ol class=\"wp-block-list\">\n<li>Log in to the <a href=\"https:\/\/steamcommunity.com\/login\">Steam web client<\/a>.<\/li>\n\n\n\n<li>Open the <a href=\"https:\/\/steamcommunity.com\/dev\/managegameservers\">Steam game server management page<\/a>.&nbsp;<\/li>\n\n\n\n<li>Scroll down to the <strong>Create a new game server accoun<\/strong>t sectionenter <strong>4020<\/strong> as the application ID. You can also add a memo for identification.<\/li>\n\n\n\n<li>Click <strong>Create<\/strong>, and the new token will show up on the list.&nbsp;<\/li>\n<\/ol><p>Now, add the token in your server startup command after the <strong>+sv_setsteamaccount<\/strong> flag like this example:<\/p><pre class=\"wp-block-preformatted\">.\/srcds_run -game garrysmod +maxplayers 12 +map gm_flatgrass +sv_setsteamaccount yourtokengoeshere<\/pre><div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-constrained wp-block-group-is-layout-constrained\">\n<h2 class=\"wp-block-heading\" id=\"h-how-to-make-a-gmod-server-using-hostinger-game-panel\">How to make a GMod server using Hostinger Game Panel<\/h2>\n\n\n\n<p>Hostinger Game Panel lets you easily set up and manage a <a href=\"\/ng\/tutorials\/games-with-dedicated-servers\/\">dedicated server for various games<\/a> without commands. In addition to saving time, this method is safer since you won&rsquo;t run the wrong utilities that might cause errors.<\/p>\n\n\n\n<p>After purchasing a plan, complete the onboarding tasks, like setting up a new password and selecting a data center. Since we provide <a href=\"https:\/\/support.hostinger.com\/en\/articles\/1583267-where-are-hostinger-servers-located\">multiple VPS locations across the globe<\/a>, choose the closest one to your player base to minimize latency.<\/p>\n\n\n\n<p>Since Hostinger Game Panel hosting is instantly ready after the onboarding, you can immediately install a Garry&rsquo;s Mod host by following these steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Log in to <strong>hPanel<\/strong> <a href=\"\/ng\/tutorials\/hpanel-tutorial\/\"><\/a>and click <strong>VPS<\/strong> at the sidebar.<\/li>\n\n\n\n<li>From the list, click <strong>Manage<\/strong> on your Game Panel hosting.<\/li>\n\n\n\n<li>In the <strong>VPS Overview<\/strong> menu, click <strong>Manage panel<\/strong>.<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a5acda6487d5\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5acda6487d5\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"238\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/the-game-panel-access-button-on-the-vps-overview-page.png\/public\" alt=\"The Manage panel button on hPanel's VPS Overview page\" class=\"wp-image-125930\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/the-game-panel-access-button-on-the-vps-overview-page.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/the-game-panel-access-button-on-the-vps-overview-page.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/the-game-panel-access-button-on-the-vps-overview-page.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/the-game-panel-access-button-on-the-vps-overview-page.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/02\/the-game-panel-access-button-on-the-vps-overview-page.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<ol start=\"4\" class=\"wp-block-list\">\n<li>Once the login page opens, enter the account details and hit <strong>Login<\/strong>. You can obtain this information from the previous <strong>Overview <\/strong>menu.<\/li>\n\n\n\n<li>Click <strong>Create new instance<\/strong>.<\/li>\n\n\n\n<li>Select <strong>Garry&rsquo;s Mod<\/strong> from the application drop-down list and hit <strong>Create Instance<\/strong>.&nbsp;<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a5acda64950a\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5acda64950a\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"854\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-instance-creation-screen-in-game-panel.png\/w=1024,h=1024,fit=scale-down\" alt=\"GMod instance creation screen in Game Panel\" class=\"wp-image-114333\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-instance-creation-screen-in-game-panel.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-instance-creation-screen-in-game-panel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-instance-creation-screen-in-game-panel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-instance-creation-screen-in-game-panel.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-instance-creation-screen-in-game-panel.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div>\n\n\n<ol start=\"7\" class=\"wp-block-list\">\n<li>Double-click the new instance and head to <strong>Configurations<\/strong> &rarr; <strong>Security and Privacy<\/strong> &rarr; <strong>Generic Config<\/strong>.<\/li>\n\n\n\n<li>From the <strong>Server IP Address<\/strong> menu, select the one with <strong>eth0<\/strong>. We recommend the IPv4 address like <strong>185.185.185.185<\/strong>.&nbsp;<\/li>\n\n\n\n<li>Head back to your instance and hit <strong>Start<\/strong>.&nbsp;<\/li>\n<\/ol>\n\n\n\n<p>That&rsquo;s it! During the first launch, wait until Game Panel finishes downloading the component files. This process should take a few minutes, depending on your internet connection.<\/p>\n\n\n\n<p>Once ready, let&rsquo;s connect to your Garry&rsquo;s Mod dedicated server. Here are the steps:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Double-click your <strong>Garry&rsquo;s Mod instance<\/strong> and obtain the endpoint from the <strong>Connection info<\/strong> section.&nbsp;<\/li>\n\n\n\n<li>Open the <strong>Steam client<\/strong> and start <strong>Garry&rsquo;s Mod<\/strong>.<\/li>\n\n\n\n<li>Hit the tilde (<strong>~<\/strong>) button on your keyboard to open the command console.<\/li>\n\n\n\n<li>Enter the following command. Replace the IP address and port number with your endpoint.<\/li>\n<\/ol>\n\n\n\n<pre class=\"wp-block-preformatted\">connect 185.185.185.185:27015<\/pre>\n\n\n\n<p>To change server settings, double-click your <strong>Garry&rsquo;s Mod instance<\/strong> &rarr; <strong>Sidebar<\/strong> &rarr; <strong>Configuration<\/strong>. In the Hostinger Game Panel, you can do so easily without commands.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure data-wp-context='{\"imageId\":\"6a5acda64a328\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5acda64a328\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"595\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-settings-in-hostinger-game-panel.png\/w=1024,h=1024,fit=scale-down\" alt=\"GMod settings in Hostinger Game Panel\" class=\"wp-image-114334\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-settings-in-hostinger-game-panel.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-settings-in-hostinger-game-panel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-settings-in-hostinger-game-panel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-settings-in-hostinger-game-panel.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/08\/gmod-settings-in-hostinger-game-panel.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure>\n<\/div><\/div><\/div><h2 class=\"wp-block-heading\" id=\"h-conclusion\">What to do after creating your GMod server<\/h2><p>After creating your Garry&rsquo;s Mod server, test that it works and adjust the basic settings before inviting other players. This helps you avoid connection issues, missing content, and performance problems once people start joining.<\/p><p>First, connect to the server from Garry&rsquo;s Mod using your server IP address and port. Open the game console and enter <strong>connect your-server-ip:27015<\/strong>. If the server doesn&rsquo;t load, check whether it&rsquo;s running, confirm that the correct port is open, and make sure your firewall rules allow GMod traffic.<\/p><p>Next, add a Steam Game Server Login Token, or GSLT, if you haven&rsquo;t done it yet. A GSLT helps Steam identify your server and improves its visibility in the server list. Without it, players may still connect directly, but your server can be harder to find through the in-game browser.<\/p><p>You should also configure your server settings in the <strong>server.cfg<\/strong> file. This is where you can change the server name, password, player limit, default map, gamemode, and other rules. Keep a backup of this file before making major changes, so you can restore your settings if an update or mistake breaks the configuration.<\/p><p>If you want to customise the gameplay, add Workshop maps, addons, and gamemodes using a Steam Workshop collection. Make sure the collection is public or unlisted, then add it to your startup settings. After changing addons or maps, restart the server and test it again to make sure all content loads correctly.<\/p><p id=\"h-conclusion\">Finally, monitor your server after players join. Check CPU, RAM, and storage usage, especially if you install many addons or increase the player limit. Update the server files regularly with SteamCMD, remove unused addons, and back up important configuration files to keep your GMod server stable over time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You can host a Garry&rsquo;s Mod (GMod) server using Hostinger Game Panel or by setting it up manually on a VPS. Both methods create a dedicated multiplayer server where you can play with friends, add custom maps and addons, set your own rules, and keep the world running even when you&rsquo;re not in the game. [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/how-to-make-a-gmod-server\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to host a Garry\u2019s Mod (GMod) server","rank_math_description":"Learn how to host a dedicated GMod server. In this article, we\u2019ll cover 2 server setup methods: manual and using Hostinger\u2019s Game Panel.","rank_math_focus_keyword":"how to make a gmod server","footnotes":""},"categories":[22644],"tags":[],"class_list":["post-114329","post","type-post","status-publish","format-standard","hentry","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-make-a-gmod-server\/","default":1},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/comment-creer-un-serveur-gmod\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-make-a-gmod-server\/","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-make-a-gmod-server\/","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-make-a-gmod-server\/","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-make-a-gmod-server\/","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-make-a-gmod-server\/","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-make-a-gmod-server\/","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-make-a-gmod-server\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/114329","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=114329"}],"version-history":[{"count":18,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/114329\/revisions"}],"predecessor-version":[{"id":148705,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/114329\/revisions\/148705"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=114329"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=114329"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=114329"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}