How to Make a Dedicated Garry's Mod Server(Windows)




Introduction: How to Make a Dedicated Garry's Mod Server(Windows)

This is one way to make a dedicated server for Garry's Mod via port forwarding instead of using a hamachi client. The benefit to this is that anyone can go on your server, as long as you allow it. I will also teach you how to set permissions as well so you can lock people out too.
-----------------------------------------------------------------------**PLEASE READ**-------------------------------------------------------------------------------------
When clicking on links please right-click and select open in new tab, it makes things a lot easier.

Step 1: Download and Install the Half-Life Dedicated Source Update Tool.

Download the Half-Life Dedicated Source Update Tool here then run the program.

When installing change the destination folder to "C:\srcds" by clicking the "browse" button and then at the top of the window that says "Select Destination Directory" change whatever is in the top bar you can edit to "C:\srcds (If the file does not exist the installer will make the folder for you).

Step 2: Use Command Prompt to Update the Server Files

Once you have finished installing the Half-Life Dedicated Source Update Tool, open command prompt and copy and paste this code in:

cd \srcds

Now your able to use the update tool commands. Copy and paste this code to update the server in the same command prompt:

hldsupdatetool -command update -game "garrysmod" -dir C:\srcds

The update process can take anywhere from half an hour to an hour and a half depending on where you live, your internet connection speed and the speed of the valve servers.

Step 3: Set Server.cfg Parameters

Go to "C:\srcds\orangebox\garrysmod\cfg" and open up the server.cfg file with notepad, if the file does not exist, create it using notepad and save the file as "server.cfg" NOT "server.cfg.txt"

Go here to create the server.cfg file's code. Only worry about the Server Name, Rcon Password, and Server Password. The difference between an Rcon and Server Password is that the Rcon Password is used to kick and ban players while the Server Password is used to prevent random people from joining your server.

Once finished setting the server name and passwords scroll to the bottom of the page and click "Run cfgmaker"

Copy only to what i highlighted in the 3rd picture and then paste into the server.cfg file.

Step 4: Port Forwarding (ipconfig Command)

If you have Windows Vista, 7, or 8 in the search bar type "cmd" and then press enter.
If you have any earlier version of windows the command prompt should be located in your Accessories Folder.

Once opened type: "ipconfig" and press enter
You will get a bunch of information but all you need to worry about is the current IPv4 address and the default gateway located near the top. If you cannot find what i'm talking about look at the picture.

Step 5: Open Router Settings

Open an internet browser such as Mozilla Firefox or Google Chrome(which I am using) and in the address type your default gateway (as mentioned in the previous step).

Your browser will then ask you for a password, most of the time the password is "password" however there are a few exceptions...if your router password is not "password" look here for your default password.

Step 6: Create Custom Services

Once logged in you get a page similar to the image below.

To set up port forwarding you will want to head over to the Port Forwarding/Port Triggering option in the menu(this could be under Advanced Settings in different router models). You will have to log in again.

Once in the Port Forwarding/Port Triggering menu add a new/custom service. Make sure you are port forwarding NOT port triggering.

When creating your custom service, make sure your settings are EXACTALLY the same as these:
Service Type: BOTH TCP and UDP (Usually Listed as TCP/UDP) NOT one or the other
Starting Port: 27015
Ending Port: 27015
Server IP Address: Same as you IPv4 address mentioned earlier (Found in command prompt using "ipconfig" command).
The Service Name can be anything you want it to be.

Make another custom service with the same settings but with a Starting Port and Ending Port of 27016.

Hit apply and restart your router if necessary

Step 7: Create Run.bat File

Open notepad and copy and paste this code in:

@echo off
echo Protecting srcds from crashes...
echo If you want to close srcds and this script, close the srcds window and type Y depending on your language followed by Enter.
title Watchdog
echo (%time%) srcds started.
start /wait srcds.exe -console -game garrysmod +map gm_flatgrass +maxplayers 16
echo (%time%) WARNING: srcds closed or crashed, restarting.
goto srcds

Note: To change the map type the map name in the code where it says gm_flatgrass. The map HAS TO be placed in:


It has to have the file extension .bsp aswell.

Save the bat file and run it to start the server.



    • Metalworking Contest

      Metalworking Contest
    • Organic Cooking Challenge

      Organic Cooking Challenge
    • Fix It! Contest

      Fix It! Contest

    24 Discussions

    i dont have the orange box file

    Can you do this without The Orange Box or..?

    Yeah, I don't have the orangebox from srcds.


    2 years ago



    2 years ago


    it keeps saying no steam content servers available...

    yeah blur that out ppl better not see you local adress or default gateway...

    2 replies

    it dosnt matter if people know you Default gate way or local address the one you dont want people to know is your external. if you type ip into google that is the one you dont want people to know thats the one people can do nasty things with.

    it funnt how much people make that mistake the local ip is only a problem if he on the same network

    First part no longer works because HLDSupdatetool has been replaced by SteamCMD:

    i try to download it and my pc says it doesn't run on the pc, what the hell do I do?

    Your step 2 confused me a lot. I was unsure if you meant to open up a normal command prompt, or the hldsupdatetool and paste it there.

    This instructable seems dead so I don't expect a reply before I figure it out myself.

    the orangebox folder is empty :(

    Every time I enter my default gateway it says"Unable to connect to network" or something like that. PLEASE HELP!!!

    1 reply

    Can you go anywhere else on the internet? That sounds like a problem with your router.