Closed elmahdi-lab closed 4 years ago
Hey @elmahdi-dev,
Can you show me exactly how you used the command line options from #2?
Keep in mind that "+net_public_adr" has to be your outwards facing public IP, not your local IP.
For servers behind NAT/DHCP meant to be exposed to the public internet, this is the public facing ip address string: ('x.x.x.x')
Source: https://developer.valvesoftware.com/wiki/List_of_CS:GO_Cvars
This is the command I used:
${STEAMAPPDIR}/srcds_run \
-game \
csgo \
-console \
-autoupdate \
-steam_dir ${STEAMCMDDIR} \
-steamcmd_script ${STEAMAPPDIR}/csgo_update.txt \
-usercon \
+fps_max $SRCDS_FPSMAX \
-tickrate $SRCDS_TICKRATE \
-port $SRCDS_PORT \
+tv_port $SRCDS_TV_PORT \
+clientport $SRCDS_CLIENT_PORT \
-maxplayers_override $SRCDS_MAXPLAYERS \
+game_type $SRCDS_GAMETYPE \
+game_mode $SRCDS_GAMEMODE \
+mapgroup $SRCDS_MAPGROUP \
+map $SRCDS_STARTMAP \
+sv_setsteamaccount $SRCDS_TOKEN \
+rcon_password $SRCDS_RCONPW \
+sv_password $SRCDS_PW \
+sv_region $SRCDS_REGION \
+net_public_adr 64.229.x.x \
+ip 192.168.x.x
There must be something I'm doing wrong.
Can you try -ip 192.168.x.x
instead? I'm currently reworking the images on the dev branch and I was adding the new cvars when I stumbled on the error.
Can you try out latest? I added the new cvars.
Hello,
First, thank you very much for your work. I'm using your docker image and it works very well, except RCON.
I have a spare pc, that is setup with dynamic dns (because I don't have a static one.), my ip does not change that often, i think once in 6 months. So I decided to use your image and my spare pc to host a csgo server. With port forwarding it works flawlessly, me and my friends which are outside of my local network can play. But when trying to use RCON, i always get Unable to connect to remote server (192.168.x.x:27015)
I don't think it's an issue with your image, but I looked everywhere and couldn't find any tip except https://github.com/CM2Walki/CSGO/issues/2#issuecomment-551221933, but it didn't work either. I tried with my public and local ips without success.
Is there something else I can check? Thanks.