Counter-Strike 2

Counter-Strike 2

36 valoraciones
Setting up a CS-GO dedicated server
Por r1fl
You ever wanted your own csgo server...?
Well, thats probably new to you but you can host it easily for free!
   
Premiar
Favoritos
Favorito
Quitar
Port forwarding

What is a port..?

"Port forwarding opens certain ports on your home or small business network, usually blocked from access by your router, to the Internet. Opening specific ports can allow games, servers, BitTorrent clients, and other applications to work through the usual security of your router that otherwise does not permit connections to these ports. Follow this guide to forward the ports you need, regardless of your operating system."


How to forward a port
  • Check your router gateway -
Press Win+R, a run dialog will pop up. Type cmd and press enter.
When you are in the cmd type the "ipconfig" command and search for the "Default Gateway"



  • Connecting to your router panel -

Type that ip adress in your browser url section and click enter. Now, login into your
router panel with your user name and password; Default login is
Username - admin
Password - admin
  • Open the ports -

When your in, search for the port forwarding tab. If you cant find it just google how to open ports and your router model.

Ports to open:

27015 TCP/UDP
27020 UDP
27005 UDP
51840 UDP

  • Test the ports -
When you are done with the whole process, check if you did everything right by
test the ports. You can test the ports with the "Open port finder" in here
http://www.yougetsignal.com/tools/open-ports/





SteamCMD Download\Install
.
What is that?

"The Steam Console Client or SteamCMD is a command-line version of the Steam client. Its primary use is to install and update various dedicated servers available on Steam using a command-line interface. It works with games that use the SteamPipe content system. All games have been migrated from the deprecated HLDSUpdateTool to SteamCMD. "

How to install

  • Windows -

1. Download the SteamCMD
https://steamcdn-a.akamaihd.net/client/installer/steamcmd.zip

2. Create a steam CMD folder in your main hard disk. for example C:\steamcmd

3. Extract the Steam CMD install file to the folder.

4. Open the installation file.

  • Linux -

1. First install the dependencies required to run SteamCMD.

Ubuntu/Debian 64-Bit -
"sudo apt-get install lib32gcc1"

RedHat/CentOS -
"yum install glibc libstdc++"

RedHat/CentOS 64-Bit -
"yum install glibc.i686 libstdc++.i686"

2. It is recommended to create a separate user for SteamCMD. In any case, do not run it as root, which can cause a serious security risk! Run the following command as root to create the steam user, and login as it -

"useradd -m steam"
"su - steam"

3. Create a directory for SteamCMD and switch to it.

"mkdir ~/steamcmd"
"cd ~/steamcmd"

4. Download SteamCMD for Linux.

"wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz"

5. Extract the contents to the directory.

"tar -xvzf steamcmd_linux.tar.gz"

  • OS X -

1. Open Terminal.app and create a directory for SteamCMD.

"mkdir ~/steamcmd"
"cd ~/steamcmd"

2. Download SteamCMD for OS X.

"curl -O https://steamcdn-a.akamaihd.net/client/installer/steamcmd_osx.tar.gz"

3. Extract the contents to the directory.

"tar -xvzf steamcmd_osx.tar.gz"




Installing the server files
1. Open the Steam CMD and create a folder for the server
recommended C:\csgo_ds

2. In the steam cmd login with the following command
"login anonymous"

3. In the steam cmd choose your install dir with the following command
"force_install_dir c:\csgo_ds\"

4. In the steam cmd download and install the server files with the following command
"app_update 740 validate"
Starting the server!
That's it! You are done with all of the installation boring part! now you can finally install the server and play it.

First step -

Create a batch file in the csgo server dir

Second step -

Edit the batch file and type in one of the following lines

Classic Casual:

srcds -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_active +map de_dust2

Classic Competitive:

srcds -game csgo -console -usercon +game_type 0 +game_mode 1 +mapgroup mg_active +map de_dust2

Arms Race:

srcds -game csgo -console -usercon +game_type 1 +game_mode 0 +mapgroup mg_armsrace +map ar_shoots

Demolition:

srcds -game csgo -console -usercon +game_type 1 +game_mode 1 +mapgroup mg_demolition +map de_lake

Deathmatch:

srcds -game csgo -console -usercon +game_type 1 +game_mode 2 +mapgroup mg_allclassic +map de_dust

The batch file is the "launch options" of the server, if you want your server to be public (not lan)
add "+net_public_adr xxx.xxx.xxx.xxx" to the end of the "launch options"

Support
Donate \ Join my steam group to support

https://steamcommunity.com/tradeoffer/new/?partner=177013858&token=s-qNwiQn

Thanks, like and comment if the guide was helpful.

Add\Comment here if you need any help.

-h0pe
17 comentarios
⇑⇑ 2 MAR 2020 a las 8:52 
+AND change the drive in force_install_dir c:\csgo_ds\ command to d: or e:.
⇑⇑ 2 MAR 2020 a las 8:49 
@Samery it probably means you are lacking the required hard drive space. Try installing it on a different drive /create a folder on drive D or E for example/.
grimm 19 ENE 2020 a las 23:17 
What Does Error! App '740' state is 0x202 after update job. Mean? How Do I Fix It


arbel03 עם ישראל חי 17 DIC 2018 a las 8:43 
thanks!
shakal 24 NOV 2018 a las 1:58 
even after +net_public_adr xxx.xxx.xxx.xxx"
port forwarding is done
it would still login as anoymous
any solution links please
Mr. X 11 SEP 2018 a las 3:23 
Thanks for the post. I have a little problem. Even if you put +net_public_adr serverbabyvancho.mooo.com , the server does not appear to me in the list of the Community Servers.
swin on mouse 25 JUN 2016 a las 7:37 
I cant connect to the server could u help please?
Acid-Rayn 1 OCT 2015 a las 13:27 
Thanks man
helps me and my friend get better :), im only a nova 3
Acid-Rayn 30 SEP 2015 a las 15:08 
Where is said launch options for making youre server public
logix 30 SEP 2015 a las 5:17 
If you wanted to host your server on a dedicated box how would you manage it?