CM2Walki / CSGO

Dockerfile for automated build of a CS:GO gameserver: https://hub.docker.com/r/cm2network/csgo/
https://CM2.Network
MIT License
249 stars 74 forks source link

My server is unable to list in the CSGO Community Servers #102

Closed toddtian closed 1 year ago

toddtian commented 1 year ago

Hi,

The server UFW has been disabled. The server IP is public & static.

I used the following command to start the server: docker run -d --net=host \ --name=csgo \ -e SRCDS_TOKEN="xxxxxxx" \ -e SRCDS_HOSTNAME="ybiceman" \ -e SRCDS_PW="xxx" \ -e SRCDS_RCONPW="xxxx" \ cm2network/csgo

After the docker started, I can only use "connect xxx.xxx; password xxxx" command to connect the server, I can't find the server name in CSGO Community Servers Browser.

Could you please help me?

voidlesity commented 1 year ago

on which tab are you Internet or Lan cause i think you need to port forward port 27015 to make it work for public

toddtian commented 1 year ago

On Internet tab, I filtered it by the SRCDS_HOSTNAME but the server not found, but "connect IP" in console works fine.

The server has a public static IP.

The docker is started by --net=host so it will auto set up the NAT, right?