• Domains
  • Web Hosting
  • WordPress Hosting
  • Reseller Hosting
  • Cloud VPS
  • Dedicated Servers
  • Domains
  • Web Hosting
  • WordPress Hosting
  • Reseller Hosting
  • Cloud VPS
  • Dedicated Servers
home/Knowledge Base/Dedicated Servers/Windows Server 2012/How to Install Garry’s Mod on Windows Server
Popular Search:Dedicated Server, CentOS, Web Hosting

How to Install Garry’s Mod on Windows Server

20 views 0 November 26, 2019 Updated on December 5, 2019 aklwebhost

Introduction

This article will explain how to download and install a Garry’s Mod server on Windows Server 2012. This guide is made to be in depth and some parts may be difficult to understand if you are inexperienced in source dedicated server hosting.


Prerequisites

  • SteamCMD.
  • Ability to port forward.
  • A steam account to create collections (optional).

Installing SteamCMD

To make sure you have the latest build of Garry’s Mod Dedicated Server, we will install it through SteamCMD.

Download SteamCMD by using this direct link.

https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip

Create a folder in a desired location.

Extract the contents of the zip to the folder you’ve created.


Downloading Garry’s Mod Dedicated Server tool

Execute the SteamCMD executable in the folder to which you’ve extracted the zip.

Login to an anonymous account.

login anonymous

Create a folder to store your Garry’s Mod server files.

Select your folder by typing in the following directory path.

force_install_dir C:\my_example_directory\

Install Garry’s Mod Dedicated Server.

app_update 4020

After waiting for progress to reach 100 percent, verify the downloaded content.

app_update 4020 validate

Once the files have finished downloading, use the following command.

quit

Configuration

All settings of your server will be found inside of the configuration file shown below, here you can change parameters to suit what your server needs, such as a hostname, password, tickrate and many others.

It is recommended that you find an automatic configuration maker, as Garry’s Mod offers a very wide range of customization.

Make sure to research the parameters you are setting, as some parameters are dangerous and may not allow your server to run effectively and possibly not run at all.

Customize your Garry’s Mod server

Navigate to your server directory and select the cfg folder.

Locate server.cfg and use Notepad to open it.

Create your required settings, for example:

  • Select your hostname and turn on content downloading by typing in the following.
    hostname "Garry's Mod Server"
    sv_allowdownload 1
    

Create a start-up batch file.

Navigate to your folder in which you stored all of your server files.

Create a new notepad text file and paste the text below into it.

@echo off
cls
:srcds
echo (%time%) srcds started.
start /wait srcds.exe -console -game garrysmod +map gm_flatgrass +maxplayers 32
echo (%time%) WARNING: Srcds closed. Restarting server.
goto srcds 

Save the file as a batch file, make sure it is in the primary directory of the server folder.


Running the server

To begin the server, execute the batch file you have created in the primary directory of your Garry’s Mod server.


Port Forwarding

To allow for external connections to be made to the server, it is important to make sure that you have the following ports open:

  • 27015 UDP
  • 27015 TCP

Addons and Content

Garry’s Mod has a steam workshop filled with many useful tools, allowing you to create complex and effective servers.

There are 2 separate ways of installing addons onto your server.

Advanced

Create the workshop collection

Open the Steam Workshop and navigate to the Garry’s Mod section.

Subscribe to the addons that you want on your server.

Create a collection containing all of the addons that you have selected.

Publish the collection and record the URL of the collection in a place that you can refer to.

Open this link with your steam account.

Create an API key and choose steamidfinder.com as the API domain.

Record the API key in a place that you can refer to.

Adding the collection to the server

Open the batch file you’ve created in the primary directory of the server.

On the line following start /wait scrds.exe........., add the following code.

+host_workshop_collection WORKSHOP_URL_ID -authkey API_KEY

Make sure to replace WORKSHOP_URL_ID with the digits from your collection URL. Replace the API_KEY with the API key you’ve created earlier.

The batch file should look similar to the following code.

@echo off
cls
:srcds
start /wait srcds.exe -console -game garrysmod +map gm_flatgrass +maxplayers 32
+host_workshop_collection 123456789 -authkey 12345678901234567890
echo (%time%) WARNING: Srcds closed. Restarting server.
goto srcds 

Manual

Navigate to your server’s main directory.

Inside you will find an addons folder, if not then you are likely in the wrong sub folder or it has not been created yet. If so, create a folder named addons.

Inside the addons folder, you can place all your addon files, these will be automatically mounted and executed upon running your server.


Useful Information

  • It is recommended to run a third party anti-cheat software with Garry’s Mod as there is no active anti-cheat, and your server may be vulnerable to attacks by malicious players.
  • Make sure you don’t overload your Garry’s Mod server with resource intensive addons and content, and understand that you may need to upgrade your server specifications if necessary to keep your server performing normally.
  • Garry’s Mod servers are commonly not RAM intensive, but depending on your customization, there can be a bias towards either RAM or CPU usage.

Updating the Server

By opening SteamCMD again, and selecting your installation directory, you can update and/or verify your server files by typing the following after you have logged into SteamCMD.

app_update 4020 validate

Enjoy your Garry’s Mod server.

Tags:How to Install Garry's Mod on Windows Server

Was this helpful?

Yes  No
Related Articles
  • How To Setup Apache on Windows Server
  • Build a Mail Server with hMailServer on Windows
  • Setting up IIS on Windows Server
  • Getting Started with Active Directory
  • Setup Dynamic DNS For Windows Remote Desktop
  • Windows Custom ISO with VirtIO Drivers
Leave A Comment Cancel reply

Windows Server 2012
  • How to Install Garry’s Mod on Windows Server
  • Connect Remotely to a Dedicated Server with Windows Server
  • Change Product Key in Windows Server 2012
  • Browsing the Internet with Windows Server 2012
Popular Articles
  • Using StrongSwan for IPSec VPN on CentOS 7
  • Disabling SSDP (Linux / Windows)
  • Can I pay by Western Union?
  • Can a Coupon Code Discount Be Carried Forward While I Upgrade My VPS Account
  • Can I pay multiple due invoices using a single transaction?
KB Categories
  • Billing
  • Cloud Hosting
  • CMS Hosting
  • cPanel/WHM Control Panel Guide
  • Dedicated Servers
    • AMD Opteron 6272
    • Arch
    • Backup Storage
    • Bandwidth
    • Basic Security
    • BSD
    • CentOS
    • Containers
    • CoreOS
    • DDoS Protection
    • Debian
    • Dedicated Server Control Panel
    • Intel Core i5 3550
    • Intel Core i5 4570
    • Intel Core i7 3770
    • Intel Core i7 4770
    • Intel Xeon E3 1230 V3
    • Intel Xeon E3 1245 V2
    • IP Space
    • Linux Guides
    • Minecraft
    • Networking
    • Server Apps
    • Server Troubleshooting
    • Ubuntu
    • Windows Guides
    • Windows Server 2008
    • Windows Server 2012
  • Domain Names
  • Email Support Documentation
    • Setup IMAP or POP
    • User Features – How To
    • Webmail – How To
  • FTP (File Transfer Protocol
    • CuteFTP Guide
    • FileZilla Guide
  • Game Servers
  • MySQL and MariaDB
  • Node.js
  • Plesk Web Hosting Guide
  • VPS Server
  • Web Servers

  How to Install Forge and Sponge (Minecraft) on a CentOS 6 Server

How To Install Garry’s Mod Server on CentOS 7  

  • Privacy Policy
  • Terms of Use
  • © 2022 AKLWEB HOST LLC, All Rights Reserved.

Popular Search:Dedicated Server, CentOS, Web Hosting