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.

How to Make a Dedicated Garry's Mod Server(Windows)
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

How to Make a Dedicated Garry's Mod Server(Windows)
How to Make a Dedicated Garry's Mod Server(Windows)
How to Make a Dedicated Garry's Mod Server(Windows)
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)

How to Make a Dedicated Garry's Mod Server(Windows)
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

How to Make a Dedicated Garry's Mod Server(Windows)
How to Make a Dedicated Garry's Mod Server(Windows)
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

How to Make a Dedicated Garry's Mod Server(Windows)
How to Make a Dedicated Garry's Mod Server(Windows)
How to Make a Dedicated Garry's Mod Server(Windows)
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.

Tag cloud

make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel