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:

C:
cd \srcds
hldsupdatetool

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
cls
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 srcds.com Watchdog
:srcds
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:

C:\srcds\orangebox\garrysmod\maps

It has to have the file extension .bsp aswell.

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

Comments

author
Tomasz TheG (author)2017-08-19

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

author
titanfries12 (author)2016-03-08

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

author
ZackC9 (author)2016-02-17

WAT

author
ZackC9 (author)2016-02-17

WAT

author
Nggaming1999_ (author)2015-12-23

it keeps saying no steam content servers available...

author
MaksymC (author)2014-11-28

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

author
Variacable (author)MaksymC2015-04-26

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.

author
KcewL (author)Variacable2015-12-05

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

author
ghjklm (author)2014-12-30

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

https://developer.valvesoftware.com/wiki/SteamCMD

author
JosephD3 (author)2014-10-20

http://billing.nitrous-networks.com/aff.php?aff=20...

It costs, but it inst much and is easy and worth the money.

author
BrandonB3 (author)2014-09-28

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

author
Amber Bandit (author)2014-08-26

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.

author
KentoskiK (author)2014-07-29

Thank You so much it helped me.

author
cthompson68 (author)2014-04-11

I get this when i try to update

error.PNG
author
jgonzalez88 (author)2014-03-04

theres no orange box folder for me just read me and other stuff

author
marcosrezendeb (author)2014-01-09

the orangebox folder is empty :(

author
xbolt13x (author)2013-08-29

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

author
xXcAsPaXx (author)xbolt13x2013-09-01

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

author
weegi124 (author)2013-07-27

It says "Windows cannot find 'srcds.exe'

author
xXcAsPaXx (author)weegi1242013-08-02

Then the Updater Tool did not install properly, try uninstalling then re-installing.

author
dmaguire (author)2013-07-17

Where did your instructable go with the free money through the pay pal account?

author
xXcAsPaXx (author)dmaguire2013-08-02

https://www.instructables.com/id/How-To-Make-Money-Online-Without-Doing-Anything-N/

author
Masterjacob (author)2013-07-07

http://steam-wallet.com/index.php?id=77038