05-04-2015, 01:40 AM (This post was last modified: 05-04-2015, 01:44 AM by Wuzzy.
Edit Reason: server > server.cfg
)
Hi Will, making a server is actually pretty easy- There are just 3 major obstacles to overcome:
-Logging into your router to port forward
-Turning off your firewall
-And good internet (if it is slow, then this is going to be a long painstaking process)
1.First you are going to need to download the steamcmd- https://developer.valvesoftware.com/wiki/SteamCMD
2. Put it in a folder, then run it
3.Wait for it to update. Once it have finished, type in the command: login anonymous (If this does not work, type in : login >username<
4.Type in: force_install_dir >path< (example: force_install_dir C:\gmod) ====== (Make a folder for your server)
5.Type in: app_update 4020
6.Open up your server folder> Now you are going to want to make a watchdog (it opens the server)
7.Create a new text document. Call it: start.bat -It is very important that you name it exactly that
8.Right click and edit it (this is the only way you can open the file)
9. Paste in all this:
@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
-save and quit
10.Go to your server file>garrysmod>cfg>server.cfg-you can change the server name from there
11.Now you have to login to your router- the easiest way to do this is find the command prompt- or just type in cmd. Open it up and type in: ipconfig -Now search for your ipv4 adress. Now type it in URL bar of your internet. From there, find port forwarding and open a new port.
Ports to open: 27015 (TCP/UDP)
27005 (TCP/UDP)
12. Turn of you firewalls- all of them. The server wont work otherwise.
13.Congratulate yourself- You now own a server!
I hope this worked for you, and if you want to know how to mount addons and maps, or just have a problem making or fixing the server, email me at house.of.m@live.com