Skip to content
This repository has been archived by the owner on Oct 5, 2023. It is now read-only.

Still getting Failed to connect to game server. The game server restricts clients on DigitalOcean #75

Closed
wildneuro opened this issue May 16, 2022 · 12 comments
Assignees
Labels
question Further information is requested wontfix This will not be worked on

Comments

@wildneuro
Copy link

wildneuro commented May 16, 2022

image
image

@wildneuro
Copy link
Author

Help guys :)

@korotky
Copy link

korotky commented May 16, 2022

It looks like you need to create login token for game server on https://steamcommunity.com/dev/managegameservers and put it into sv_setsteamaccount in server.cfg
https://www.youtube.com/watch?v=mcKKfuEBNw8

@CM2Walki
Copy link
Owner

You can also set it using SRCDS_TOKEN= in docker run

@CM2Walki CM2Walki added the question Further information is requested label May 16, 2022
@wildneuro
Copy link
Author

wildneuro commented May 16, 2022 via email

@CM2Walki
Copy link
Owner

CM2Walki commented May 16, 2022

Can you post your docker run command or docker-compose stack?

Why is the server.cfg empty? Did you empty it?

@CM2Walki CM2Walki self-assigned this May 16, 2022
@wildneuro
Copy link
Author

wildneuro commented May 17, 2022

Can you post your docker run command or docker-compose stack?

docker run -it --net=host --env-file /root/csgo-data/csgo.env -v /root/csgo-data/:/home/steam/csgo-dedicated/ -v /root/csgo-data/server.cfg:/home/steam/csgo-dedicated/csgo/cfg/server.cfg cm2network/csgo /bin/bash

File: /root/csgo-data/csgo.env:

SRCDS_TOKEN="AB...2C"
SRCDS_RCONPW="xxxxxxx"
SRCDS_PW="xxxxxxx"
SRCDS_PORT=27015
SRCDS_TV_PORT=27020
SRCDS_NET_PUBLIC_ADDRESS="0"
SRCDS_IP="0"
SRCDS_LAN="1"
SRCDS_FPSMAX=300
SRCDS_TICKRATE=128
SRCDS_MAXPLAYERS=14
SRCDS_STARTMAP="de_dust2"
SRCDS_REGION=3
SRCDS_MAPGROUP="mg_active"
SRCDS_GAMETYPE=0
SRCDS_GAMEMODE=1
SRCDS_HOSTNAME="CSGO Server"
SRCDS_WORKSHOP_START_MAP=0
SRCDS_HOST_WORKSHOP_COLLECTION=0
SRCDS_WORKSHOP_AUTHKEY="AB15C5.......8E"
ADDITIONAL_ARGS=""

Why is the server.cfg empty? Did you empty it?

I started from scratch, so it's empty. And per entry.sh script if it's missing it will download a new one.
Could be a problem here, as file is empty but exists.

@CM2Walki
Copy link
Owner

SRCDS_LAN=1 try putting that to 0 ;)

@vbrunko-voc
Copy link

I did. No results man.

@dallemugzz
Copy link

I did. No results man.

i had the same issue and was about to give up. but i found out that the token needs to be made for 730 and NOT 740 even though that is the token that you would go with intuitively. so create a new token for appID 730 and i'm sure it will solve your problem.

@CM2Walki
Copy link
Owner

CM2Walki commented May 26, 2022

I just noticed it also says 730 during the token generation:
image

CM2Walki added a commit to CM2Walki/TF2 that referenced this issue May 26, 2022
@wildneuro
Copy link
Author

image
image
Nope, still the same:

image

@wildneuro
Copy link
Author

All firewalls are open in/out TCP/UDP, tried on 3 different clouds: AWS/Azure/DO

@CM2Walki CM2Walki added the wontfix This will not be worked on label Oct 3, 2023
@CM2Walki CM2Walki closed this as completed Oct 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants