

You can set the Service Port as 27015-27016(Use 27015 only if only one port is required), the IP Address your IPv4 Address, and the Protocol "Any" or "All" or "TCP/UDP" (Again, depending on your router page).ĩ. For this, find a section for forwarding ports (it's different on all router pages), and fill in all required values and information. If possible, use the default login "admin", for username and password.Ĩ.

If you don't know the information, ask anyone who knows it or might know it, or look it up on your router box. Enter the login information for your router. A login screen should appear, either a windows screen or a website login page.ħ. Open up your web browser, type in the default gateway into the URL bar, and press enter. When you found it, look up the Standard Gateway of that section, and remember it in any way.Ħ. Search the "Ethernet Adaptor LAN" section.ĥ. A list of IPs, IDs and whatnot should appear. In the command prompt, type "ipconfig" and press ENTER.Ĥ. Go to your desktop and open up your start menu.Ģ. Port forwarding will not make your router settings accessible from anywhere, it will only make it possible for everyone to join your server, which is hidden behind a router wall.ġ. This is because nobody but you, at the moment, has the permission to connect to your host. When they try to join by joining your game, it will kick them because they "failed after 4 retries". The server will not respond to your friends.

The server seems to run, and you are able to join, but something else is missing. And you can put in some different console commands which you want to be "autoexecuted"Note that this is just an example to show you how a proper config file looks like syntactically. "sbox_playershurtplayers"-"1" //Enables PVP Damage "hostname"-"My Garry's Mod Sandbox Server" Replace the lines with blank spaces, or press "TAB" around 6 times to make a big space. The lines are used to make big spaces, since using blank spaces does not work in Steam. This file is located here: drive name:/Program Files(x86)/yourfilepath/blah/steamcmd/garrysmod/cfgĪn example of a server.cfg file would look like this: This file is used to set the Sandbox limits, and to set all console commands that are getting automatically executed when the server is booting up. Now, we have to configure it, to make it work properly and to keep things organized.įirst thing you should do, is to configure the server.cfg file.
