Can not Connect to CS GO Server through public ip
I created a CS GO Server on my pc. I have been able to connect to the server on LAN but my friends can not connect it using external ip. The log of the running server is as follows:


NET_CloseAllSockets ---- Host_NewGame ---- Host_NewGame on map de_dust2 GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom). GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/cooperative). GameTypes: missing mapgroupsSP entry for game type/mode (cooperative/coopmission). ammo_grenade_limit_default - 1 ammo_grenade_limit_flashbang - 1 ammo_grenade_limit_total - 3 ammo_item_limit_healthshot - 4 bot_allow_grenades - 1 bot_allow_machine_guns - 1 bot_allow_pistols - 1 bot_allow_rifles - 1 bot_allow_rogues - 1 bot_allow_shotguns - 1 bot_allow_snipers - 1 bot_allow_sub_machine_guns - 1 bot_autodifficulty_threshold_high - 5.0 bot_autodifficulty_threshold_low - -2.0 bot_chatter - normal bot_coop_idle_max_vision_distance - 1400 bot_defer_to_human_goals - 0 bot_defer_to_human_items - 1 bot_difficulty - 1 bot_max_hearing_distance_override - -1 bot_max_visible_smoke_length - 200 bot_max_vision_distance_override - -1 bot_quota - 10 bot_quota_mode - normal bot_coop_idle_max_vision_distance - 1400 bot_max_vision_distance_override - -1 bot_max_hearing_distance_override - -1 ConVarRef bot_coopmission_dz_engagement_limit doesn't point to an existing ConVar cash_player_bomb_defused - 300 cash_player_bomb_planted - 300 cash_player_damage_hostage - -30 cash_player_get_killed - 0 cash_player_interact_with_hostage - 150 cash_player_killed_enemy_default - 300 cash_player_killed_enemy_factor - 1 cash_player_killed_hostage - -1000 cash_player_killed_teammate - -300 cash_player_rescued_hostage - 1000 cash_player_respawn_amount - 0 cash_team_elimination_bomb_map - 3250 cash_team_elimination_hostage_map_ct - 2000 cash_team_elimination_hostage_map_t - 1000 cash_team_hostage_alive - 0 cash_team_hostage_interaction - 500 cash_team_loser_bonus - 1400 cash_team_loser_bonus_consecutive_rounds - 500 cash_team_planted_bomb_but_defused - 800 cash_team_rescued_hostage - 0 cash_team_survive_guardian_wave - 1000 cash_team_terrorist_win_bomb - 3500 cash_team_win_by_defusing_bomb - 3250 cash_team_win_by_hostage_rescue - 3500 cash_team_win_by_time_running_out_bomb - 3250 cash_team_win_by_time_running_out_hostage - 3250 contributionscore_assist - 1 contributionscore_bomb_defuse_major - 3 contributionscore_bomb_defuse_minor - 1 contributionscore_bomb_exploded - 1 contributionscore_bomb_planted - 2 contributionscore_cash_bundle - 0 contributionscore_crate_break - 0 contributionscore_hostage_kill - -2 contributionscore_hostage_rescue_major - 3 contributionscore_hostage_rescue_minor - 1 contributionscore_kill - 2 contributionscore_kill_factor - 0 contributionscore_objective_kill - 3 contributionscore_suicide - -2 contributionscore_team_kill - -2 ff_damage_reduction_bullets - 0.1 ff_damage_reduction_grenade - 0.25 ff_damage_reduction_grenade_self - 1 ff_damage_reduction_other - 0.25 global_chatter_info - healthshot_healthboost_damage_multiplier - 1 healthshot_healthboost_speed_multiplier - 1 healthshot_healthboost_time - 0 inferno_child_spawn_max_depth - 4 inferno_max_flames - 16 inferno_max_range - 150 molotov_throw_detonate_time - 2.0 mp_afterroundmoney - 0 mp_anyone_can_pickup_c4 - 0 mp_autokick - 1 mp_autoteambalance - 1 mp_bot_ai_bt - mp_buy_allow_grenades - 1 mp_buy_allow_guns - 255 mp_buy_anywhere - 0 mp_buy_during_immunity - 0 mp_buytime - 90 mp_c4_cannot_be_defused - 0 mp_c4timer - 40 mp_consecutive_loss_max - 4 mp_coop_force_join_ct - 0 mp_coopmission_bot_difficulty_offset - 0 mp_coopmission_dz - 0 mp_coopmission_mission_number - 0 mp_coopmission_dz - 0 mp_ct_default_grenades - mp_ct_default_melee - weapon_knife mp_ct_default_primary - mp_ct_default_secondary - weapon_hkp2000 mp_damage_headshot_only - 0 mp_damage_scale_ct_body - 1.0 mp_damage_scale_ct_head - 1.0 mp_damage_scale_t_body - 1.0 mp_damage_scale_t_head - 1.0 mp_damage_vampiric_amount - 0 mp_death_drop_c4 - 1 mp_death_drop_defuser - 1 mp_death_drop_grenade - 2 mp_death_drop_gun - 1 mp_deathcam_skippable - 1 mp_default_team_winner_no_objective - -1 mp_defuser_allocation - 0 mp_display_kill_assists - 1 mp_dm_bonus_percent - 50 mp_dm_bonus_respawn - 0 mp_dm_bonusweapon_dogtags - 0 mp_dm_dogtag_score - 0 mp_dm_kill_base_score - 10 mp_dm_teammode - 0 mp_dm_teammode_bonus_score - 1 mp_dm_teammode_dogtag_score - 0 mp_dm_teammode_kill_score - 1 mp_dogtag_despawn_on_killer_death - 1 mp_dogtag_despawn_time - 120 mp_dogtag_pickup_rule - 0 mp_drop_grenade_enable - 0 mp_drop_knife_enable - 0 mp_economy_reset_rounds - 0 mp_equipment_reset_rounds - 0 mp_force_assign_teams - 0 mp_force_pick_time - 15 mp_forcecamera - 1 mp_free_armor - 0 mp_freezetime - 6 mp_friendlyfire - 0 mp_ggprogressive_round_restart_delay - 15.0 mp_ggtr_always_upgrade - 0 mp_ggtr_bomb_defuse_bonus - 1 mp_ggtr_bomb_detonation_bonus - 1 mp_ggtr_bomb_pts_for_flash - 4 mp_ggtr_bomb_pts_for_he - 3 mp_ggtr_bomb_pts_for_molotov - 5 mp_ggtr_bomb_pts_for_upgrade - 2.0 mp_ggtr_bomb_respawn_delay - 0.0 mp_ggtr_end_round_kill_bonus - 1 mp_ggtr_halftime_delay - 0.0 mp_ggtr_last_weapon_kill_ends_half - 0 mp_give_player_c4 - 1 mp_global_damage_per_second - 0.0 mp_guardian_bot_money_per_wave - 800 mp_guardian_force_collect_hostages_timeout - 50 ConVarRef mp_guardian_loc_icon doesn't point to an existing ConVar mp_guardian_loc_string_desc - mp_guardian_loc_string_hud - #guardian_mission_type_kills mp_guardian_loc_weapon - mp_guardian_player_dist_max - 2000 mp_guardian_player_dist_min - 1300 mp_guardian_special_kills_needed - 10 mp_guardian_special_weapon_needed - awp mp_guardian_target_site - -1 mp_guardian_force_collect_hostages_timeout - 50 mp_halftime - 0 mp_halftime_pausetimer - 0 mp_heavyassaultsuit_aimpunch - 1.0 mp_heavyassaultsuit_cooldown - 5 mp_heavyassaultsuit_deploy_timescale - 0.8 mp_heavyassaultsuit_speed - 130 mp_heavybot_damage_reduction_scale - 1.0 mp_hostagepenalty - 10 mp_hostages_max - 2 mp_hostages_spawn_force_positions - mp_hostages_spawn_same_every_round - 1 mp_items_prohibited - mp_limitteams - 2 mp_match_can_clinch - 1 mp_match_end_changelevel - 0 mp_max_armor - 2 mp_maxmoney - 16000 mp_maxrounds - 0 mp_molotovusedelay - 15.0 mp_only_cts_rescue_hostages - 1 mp_plant_c4_anywhere - 0 mp_playercashawards - 1 mp_radar_showall - 0 mp_randomspawn - 0 mp_randomspawn_dist - 0 mp_randomspawn_los - 1 mp_respawn_immunitytime - 4.0 mp_respawn_on_death_ct - 0 mp_respawn_on_death_t - 0 mp_respawnwavetime_ct - 10.0 mp_respawnwavetime_t - 10.0 mp_round_restart_delay - 7.0 mp_roundtime - 5 mp_roundtime_defuse - 0 mp_roundtime_hostage - 0 mp_solid_teammates - 1 mp_starting_losses - 0 mp_startmoney - 800 mp_t_default_grenades - mp_t_default_melee - weapon_knife mp_t_default_primary - mp_t_default_secondary - weapon_glock mp_tagging_scale - 1.0 mp_taser_recharge_time - -1 mp_teamcashawards - 1 mp_teammates_are_enemies - 0 mp_timelimit - 5 mp_use_respawn_waves - 0 mp_warmup_pausetimer - 0 mp_warmuptime - 30 mp_warmuptime_all_players_connected - 0 mp_weapon_self_inflict_amount - 0 mp_weapons_allow_heavy - -1 mp_weapons_allow_heavyassaultsuit - 0 mp_weapons_allow_map_placed - 0 mp_weapons_allow_pistols - -1 mp_weapons_allow_rifles - -1 mp_weapons_allow_smgs - -1 mp_weapons_allow_typecount - 5 mp_weapons_allow_zeus - 1 mp_weapons_glow_on_ground - 0 mp_weapons_max_gun_purchases_per_weapon_per_match - -1 mp_win_panel_display_time - 3 occlusion_test_async - 0 spec_freeze_panel_extended_time - 0.0 spec_freeze_time - 3.0 spec_replay_bot - 0 spec_replay_enable - 0 spec_replay_leadup_time - 5.3438 sv_accelerate - 5.5 sv_air_pushaway_dist - 0 sv_airaccelerate - 12 sv_allow_votes - 1 sv_alltalk - 0 sv_arms_race_vote_to_restart_disallowed_after - 0 sv_auto_adjust_bot_difficulty - 1 sv_auto_full_alltalk_during_warmup_half_end - 1 sv_autobunnyhopping - 0 sv_autobuyammo - 0 sv_bot_buy_decoy_weight - 1 sv_bot_buy_flash_weight - 1 sv_bot_buy_grenade_chance - 33 sv_bot_buy_hegrenade_weight - 6 sv_bot_buy_molotov_weight - 1 sv_bot_buy_smoke_weight - 1 sv_bots_force_rebuy_every_round - 0 sv_bots_get_easier_each_win - 0 sv_bots_get_harder_after_each_wave - 0 sv_bounce - 0 sv_buy_status_override - -1 sv_deadtalk - 0 sv_disable_immunity_alpha - 0 sv_disable_radar - 0 ConVarRef sv_disable_show_team_select_menu doesn't point to an existing ConVar sv_duplicate_playernames_ok - 0 sv_enablebunnyhopping - 0 sv_env_entity_makers_enabled - 1 sv_extract_ammo_from_dropped_weapons - 0 sv_falldamage_scale - 1 sv_falldamage_to_below_player_multiplier - 1 sv_falldamage_to_below_player_ratio - 0 sv_force_reflections - 0 sv_friction - 5.2 sv_grassburn - 0 sv_gravity - 800 sv_guardian_extra_equipment_ct - sv_guardian_extra_equipment_t - sv_guardian_health_refresh_per_wave - 50 sv_guardian_heavy_all - 0 sv_guardian_heavy_count - 0 sv_guardian_max_wave_for_heavy - 0 sv_guardian_min_wave_for_heavy - 0 sv_guardian_refresh_ammo_for_items_on_waves - sv_guardian_reset_c4_every_wave - 0 sv_guardian_respawn_health - 50 sv_guardian_spawn_health_ct - 100 sv_guardian_spawn_health_t - 100 sv_health_approach_enabled - 0 sv_health_approach_speed - 10 sv_hegrenade_damage_multiplier - 1 sv_hegrenade_radius_multiplier - 1 ConVarRef sv_hide_roundtime_until_seconds doesn't point to an existing ConVar sv_highlight_distance - 500 sv_highlight_duration - 3.5 sv_ignoregrenaderadio - 0 sv_infinite_ammo - 0 sv_knife_attack_extend_from_player_aabb - 0 sv_maxspeed - 320 sv_maxvelocity - 3500 sv_occlude_players - 1 sv_outofammo_indicator - 0 ConVarRef sv_show_ragdoll_playernames doesn't point to an existing ConVar sv_show_team_equipment_force_on - 0 sv_staminajumpcost - .080 sv_staminalandcost - .050 sv_stopspeed - 80 sv_talk_enemy_dead - 0 sv_talk_enemy_living - 0 sv_teamid_overhead_maxdist - 0 sv_teamid_overhead_maxdist_spec - 0 sv_versus_screen_scene_id - 0 sv_vote_to_changelevel_before_match_point - 0 sv_warmup_to_freezetime_delay - 4 sv_water_movespeed_multiplier - 0.8 sv_water_swim_mode - 0 sv_wateraccelerate - 10 sv_waterfriction - 1 sv_weapon_encumbrance_per_item - 0.85 sv_weapon_encumbrance_scale - 0 tv_delay - 10 weapon_accuracy_nospread - 0 weapon_air_spread_scale - 1.0 weapon_max_before_cleanup - 0 weapon_recoil_scale - 2.0 weapon_reticle_knife_show - 1 weapon_sound_falloff_multiplier - 1.0 ConVarRef sv_camera_fly_enabled doesn't point to an existing ConVar Executing dedicated server config file exec: couldn't exec gamemode_competitive_server.cfg CHostage::Precache: missing hostage models for map de_dust2. Adding the default models. PrecacheScriptSound 'Snowball.Bounce' failed, no such sound script entry PrecacheScriptSound 'Survival.VO.Taunt4a' failed, no such sound script entry PrecacheScriptSound 'balkan_epic_blank' failed, no such sound script entry Commentary: Could not find commentary data file 'maps/de_dust2_commentary.txt'. Error parsing BotProfile.db - unknown attribute 'Rank' Error parsing BotProfile.db - unknown attribute 'Rank' Error parsing BotProfile.db - unknown attribute 'Rank' Error parsing BotProfile.db - unknown attribute 'Rank' Error parsing BotProfile.db - unknown attribute 'Rank' Error parsing BotProfile.db - unknown attribute 'Rank' Error parsing BotProfile.db - unknown attribute 'Rank' Error parsing BotProfile.db - unknown attribute 'Rank' Initializing Steam libraries for secure Internet server Logging into Steam gameserver account with logon token '105DA908xxxxxxxxxxxxxxxxxxxxxxxx' SteamDatagramServer_Init succeeded Connection to Steam servers successful. Public IP is 39.36.48.244. Assigned persistent gameserver Steam ID [G:1:3117024]. Gameserver logged on to Steam, assigned identity steamid:85568392923156448 VAC secure mode is activated. GC Connection established for server version 1014, instance idx 1


My start.bat file has the following content:

srcds -game csgo -console -usercon +game_type 0 +game_mode 1 +map de_dust2 +sv_setsteamaccount 105DA9088920A2C780C9EC59CA0xxxxx +ip 0.0.0.0 +net_public_adr 0.0.0.0 -port 27016

I have also used following setting in start.bat:
srcds -game csgo -console -usercon +game_type 1 +game_mode 0 +mapgroup mg_armsrace +map ar_shoots +sv_setsteamaccount 135E20F5F4DF3A844526AC1C0F1xxxxx +net_public_addr 39.36.146.244 +clientport 27006 -port 27006

You can also check the server at steam api:
http://api.steampowered.com/ISteamApps/GetServersAtAddress/v0001?addr=39.36.48.244&format=json

My server.cfg file has following content:

hostname "Server_Name" rcon_password "xxx" sv_password "xxxx" sv_lan 0 sv_region 4 sv_tags "My Tag"

I have tried changing region but nothing changes. The port forwarding is alright as I can access ports to my pc from external pc. The ports are also allowed in firewall. I believe the error is in configuration. I can connect to the game on LAN but my friends can't find the server on community servers list and also if I do
connect 39.36.48.244:27016
It shows connection failed after 30 retries. I have tried many things but none seem to work. Any ideas?
< >
Showing 1-15 of 17 comments
Sepp Nov 19, 2019 @ 9:34pm 
If you can connect to the server via your internal LAN ip but the users fromt he outside cannot connect via the public ip then I'm pretty sure it is either a port forwarding or a firewall issue.

As your first sentence doesn't make it 100% clear. Is this dedicated server running on it's own PC or is it running on the same PC you're using as the client also?
Shukaco Dec 7, 2019 @ 12:59am 
mee
sniperion Dec 8, 2019 @ 9:05am 
try to port forward 27015 TCP and UDP if the problem continues then add to your launch script +clientport 2705
Last edited by sniperion; Dec 8, 2019 @ 9:07am
Gary_m Aug 18, 2020 @ 6:29pm 
As well as making sure your ports are open.
Try putting this line

sv_lan 0

in the server config
CSGO defaults to a Lan server,
and you say you have been playing as a Lan server with people connecting.

By putting
sv_lan 0
in the server config
It will disable the Lan and go to Internet
To switch back to Lan, just change the 0 to a 1
Example
sv_lan 1
Last edited by Gary_m; Aug 20, 2020 @ 5:38pm
KULKOG Aug 20, 2020 @ 8:10am 
me too i cant
Yamdoot May 22, 2021 @ 1:28am 
by any chance was there any solution because i am also facing the same issue. connecting in LAN works but not via WAN(internet), ports are open and firewall is configured to allow UDP/TCP connections
DARQ Oct 30, 2021 @ 6:22am 
Okay so I finally figured it.
What you need to do is add a port to your firewall and it will work
1. Get your pc ip (windows 10): Right click on startup -> Network Connections -> Ethernet ------> Proportions -> scroll down -> IPv4 address (copy)
2. Go to your router (mine is 192.168.1.1) -> Forwarding -> Virtual Servers -> add this:
27000-27050 192.168.1.104 (paster your ip)
3. my start.bat is
srcds -game csgo -console -usercon +ip 0.0.0.0 +net_public_adr 0.0.0.0 -port 27015 +sv_region 3 +game_type 0 +game_mode 1 +map de_inferno -tickrate 128 +exec server.cfg +sv_setsteamaccount {MYKEY}
I dont know why but it launches with 27016 but it is enough for me :)
DARQ Oct 30, 2021 @ 6:23am 
123 to subscribe to this :)
add this:
27000-27050 192.168.1.104 (paster your ip)

i know this is kinda late but, on my router there is something called "starting port" and "ending port". is it that ?
[N]ebsun Feb 8, 2022 @ 2:18pm 
Originally posted by Jukebox:
add this:
27000-27050 192.168.1.104 (paster your ip)

i know this is kinda late but, on my router there is something called "starting port" and "ending port". is it that ?

Yes, the port range will be forwarded - so type in the start and end port to specify the range
I'm having the same problem, has anyone managed to solve it?
sniperion Jun 29, 2023 @ 11:50am 
Originally posted by - BrNGabs 水 -:
I'm having the same problem, has anyone managed to solve it?
this is a 4 year old thread. Anyway you have to make sure your router doesn't block the ports and also to make sure your windwos firewall allows them.

EDIT: On top of that make sure you have a steam account server token
https://steamcommunity.com/dev/managegameservers
Also make sure you meet the requirements to open a server token
Last edited by sniperion; Jun 29, 2023 @ 11:55am
Originally posted by Fisoa:
Originally posted by - BrNGabs 水 -:
I'm having the same problem, has anyone managed to solve it?
this is a 4 year old thread. Anyway you have to make sure your router doesn't block the ports and also to make sure your windwos firewall allows them.

EDIT: On top of that make sure you have a steam account server token
https://steamcommunity.com/dev/managegameservers
Also make sure you meet the requirements to open a server token

So, I already released access to my port 27015 through the router, I already configured the Firewall to release the port, and I already created a valid Token on Steam, My server is working normally when I enter my IPv4, but when I go through the public port for my friends, they can't get in...

I've entered dozens of forums with people having the same problem and they always say the same things but I've practically done everything they asked and nothing works
sniperion Jun 30, 2023 @ 1:11pm 
Originally posted by - BrNGabs 水 -:
Originally posted by Fisoa:
this is a 4 year old thread. Anyway you have to make sure your router doesn't block the ports and also to make sure your windwos firewall allows them.

EDIT: On top of that make sure you have a steam account server token
https://steamcommunity.com/dev/managegameservers
Also make sure you meet the requirements to open a server token

So, I already released access to my port 27015 through the router, I already configured the Firewall to release the port, and I already created a valid Token on Steam, My server is working normally when I enter my IPv4, but when I go through the public port for my friends, they can't get in...

I've entered dozens of forums with people having the same problem and they always say the same things but I've practically done everything they asked and nothing works
I had the same problem for a while until i figuired out. Basically my ISP (internet service provider) blocked all access to ports. Even if you have it on the router. Unless you are absolutely sure its open then i can't really help you. For me i had to call them and they said that they blocked it by default so people that don't know what they are doing don't accidentaly open ports. For me they just removed the restrictions and im able to normally open ports. So give them a call but before you do make sure its actually that and not some silly mistake you are doing in the configuration
Originally posted by Fisoa:
Originally posted by - BrNGabs 水 -:

So, I already released access to my port 27015 through the router, I already configured the Firewall to release the port, and I already created a valid Token on Steam, My server is working normally when I enter my IPv4, but when I go through the public port for my friends, they can't get in...

I've entered dozens of forums with people having the same problem and they always say the same things but I've practically done everything they asked and nothing works
I had the same problem for a while until i figuired out. Basically my ISP (internet service provider) blocked all access to ports. Even if you have it on the router. Unless you are absolutely sure its open then i can't really help you. For me i had to call them and they said that they blocked it by default so people that don't know what they are doing don't accidentaly open ports. For me they just removed the restrictions and im able to normally open ports. So give them a call but before you do make sure its actually that and not some silly mistake you are doing in the configuration

That's it, I already called my provider for them to release access, they entered my pc through anydesk and configured everything correctly and told me that everything was ok and that the door was open. As for the configuration, I don't think it's because the server is working perfectly on the LAN.
< >
Showing 1-15 of 17 comments
Per page: 1530 50

Date Posted: Nov 18, 2019 @ 11:41pm
Posts: 17