Cannot connect to CSGO server

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
triphollA
New to forums
New to forums
Posts: 13
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Tue Oct 15, 2013 7:47 pm

Cannot connect to CSGO server

Post by triphollA »

I'm trying to host a CSGO server on my VPS. Everything runs perfectly fine, the server shows up on the browser list, but when I connect it hangs on "Connecting to Server" and then exits back to the main menu. The following appears in the console:

[MM] Sending reservation request to 0.0.0.0:27015
[MM] Sending reservation request to xx.xx.xxx.xxx:27015
Adding direct connect IP to connection xx.xx.xxx.xxx:27015
Bad server address public(unknown)

I've tried multiple fixes that I've found on these forums and google, including attempting to fix the gamemode_server.txt. I've setup a server on a different host and it works completely fine. Does anyone have any idea what can be going wrong? Could it be a problem with port forwarding?
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Cannot connect to CSGO server

Post by kraze »

When you see that message it means you have a configuration issue with your gamemodes_server.txt file. Can you post that file here so we can check it for errors?
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
triphollA
New to forums
New to forums
Posts: 13
Joined: Tue Oct 15, 2013 7:47 pm

Re: Cannot connect to CSGO server

Post by triphollA »

Here it is
Attachments
gamemodes_server.txt
(925 Bytes) Downloaded 123 times
triphollA
New to forums
New to forums
Posts: 13
Joined: Tue Oct 15, 2013 7:47 pm

Re: Cannot connect to CSGO server

Post by triphollA »

anyone?
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Cannot connect to CSGO server

Post by kraze »

That appears to be correct, what about your autoexec.cfg, can you post that?
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
triphollA
New to forums
New to forums
Posts: 13
Joined: Tue Oct 15, 2013 7:47 pm

Re: Cannot connect to CSGO server

Post by triphollA »

I don't have an autoexec.cfg
triphollA
New to forums
New to forums
Posts: 13
Joined: Tue Oct 15, 2013 7:47 pm

Re: Cannot connect to CSGO server

Post by triphollA »

bump
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Cannot connect to CSGO server

Post by kraze »

You should have an autoexec.cfg, check in your CFG directory.

Also there isn't a need to bump your post that is still on the front page.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
triphollA
New to forums
New to forums
Posts: 13
Joined: Tue Oct 15, 2013 7:47 pm

Re: Cannot connect to CSGO server

Post by triphollA »

yah there's no autoexec.cfg anywhere. i checked my friend's hosted game server and he doesn't have one either.
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Cannot connect to CSGO server

Post by kraze »

You may try adding one and configuring it to your options.

Code: Select all

// turn on logging first, to maximize what is logged
log 1
// game_type and game_mode together determine what is played.
// use game_type 0 and game_mode 0 for "Classic Casual"
// use game_type 0 and game_mode 1 for "Classic Competitive"
// use game_type 1 and game_mode 0 for "Arms race" (standard GunGame)
// use game_type 1 and game_mode 1 for "Demolition" (GunGame w/a bomb)
game_type 0
game_mode 0
// the map group determines what maps are run
// mapgroup mg_bomb
// mapgroup mg_hostage
// mapgroup mg_dust
// mapgroup mg_armsrace
// mapgroup mg_demolition
// mapgroup random_classic
mapgroup "mg_bomb"
// this is the starting map
map "de_dust2"
// further settings can be changed in cfg/server.cfg and in gamemodes.txt.
workshop_start_map ""
//host_workshop_collection ""
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
triphollA
New to forums
New to forums
Posts: 13
Joined: Tue Oct 15, 2013 7:47 pm

Re: Cannot connect to CSGO server

Post by triphollA »

Alright. I added an autoexec.cfg. I still cannot connect to the server.

Code: Select all

log 1

game_type 0
game_mode 1

mapgroup "mg_bomb"
map "de_dust2"
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Cannot connect to CSGO server

Post by kraze »

Try running..

game_type 1
game_mode 1


Since you're running GunGame. You'll also want to check the error you get when trying to connect to your server.
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
triphollA
New to forums
New to forums
Posts: 13
Joined: Tue Oct 15, 2013 7:47 pm

Re: Cannot connect to CSGO server

Post by triphollA »

I'm trying to run classic competitive.
User avatar
kraze
Former staff
Former staff
Posts: 4362
Joined: Fri Sep 17, 2010 9:06 am
Location: California

Re: Cannot connect to CSGO server

Post by kraze »

Your Gamemodes_server.txt leads me to believe you are, try starting with our example config here and editing the mapgroup name and maps to your liking.

http://www.nfoservers.com/forums/viewto ... =84&t=7831
@Kraze^NFo> Juski has a very valid point
@Juski> Got my new signature, thanks!
@Kraze^NFo> Out of context!
@Juski> Doesn't matter!
@Juski> You said I had a valid point! You can't take it back now! It's out there!
triphollA
New to forums
New to forums
Posts: 13
Joined: Tue Oct 15, 2013 7:47 pm

Re: Cannot connect to CSGO server

Post by triphollA »

Ok I redid it and restarted my server. It still does the same thing. I really don't think its my config.

Code: Select all

// Values here override the default gamemodes.txt 

"GameModes_Server.txt"
{
  "gameTypes"
  {
    "classic"
    {
      "gameModes"
      {
        "competitive"
        {

          "mapgroupsMP"            // List of mapgroups valid for this game mode
          {
            "mg_bomb"    ""
          }

        }
      }  
    }
  }

//////////////////////////////////////////////////////////////////////////////////////////////
// Map groups
//
// To use a mapgroup, it needs to be defined in a keyvalues
// block such as the example below, as well as listed in the 
// 'mapgroupsMP' block within the game mode that will run it,
// such as the example above.
//
// Then adjust the startup mapgroup in your autoexec.cfg file.
//
// Check the developer wiki for updated community info
// https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers
//////////////////////////////////////////////////////////////////////////////////////////////

  "mapgroups"
  {
    "mg_bomb"                  // mapgroup definition
    {
      "name"      "mg_bomb"
      "maps"
      {
        "de_dust"     ""
        "de_dust2"    ""
        "de_nuke"     ""
        "de_train"    ""
        "de_inferno"  ""
      }
    }
  }
}
Post Reply