-
-
Notifications
You must be signed in to change notification settings - Fork 76
Can't connect to the server #65
Comments
I just tested the official nginx docker image and it worked perfectly. I was able to connect to the server, so I think the problem doesn't come from my docker install. |
The server appears correctly in the list of community servers (LAN tab) but I still can't connect to it: |
How are you trying to connect? Via console? |
I tested the both way, the console and the gui. |
Are you behind a NAT? Also did you use your private or public IP to connect via the console? I haven't operated a csgo server in a local network, yet. But I have developed games with Steamworks before. The connection via the GUI will likely fail because Steam will publish your public IP (there is no way to overwrite this behavior) and without port forwarding on the router, you will fail to connect. Connection via console should work if you utilize your PC's private IP. |
As the docker is on the same machine as csgo, I use |
Could try your local IP? It could be that this: |
I've set my local ip (192.xx.xx.xx) for the variables SRCDS_NET_PUBLIC_ADDRESS and SRCDS_IP and it didn't change anything. |
I actually managed to successfully connect to the server. The main point of the solution is to edit the value of sv_lan in the Here is the full line I used to launch the server: Then to connect you must use the local address of your machine (not 127.0.0.1). Last point for those who are using the same PC for the server and the game: the port 27015 seems to be already used (but I am not 100% sure about that ) so I used the port 27016. |
See cb5a890, I removed |
I don't really understand why but it doesn't change anything when it should work. Changing it directly in the config still work however. Edit: This is the command I used to start the container: docker run -d --net=host \
-v $(pwd)/${volume_name}:/home/steam/csgo-dedicated/ \
-e SRCDS_PORT="$port" \
-e SRCDS_TV_PORT="$tvport" \
-e SRCDS_IP="$ip" \
-e SRCDS_PW="" \
-e SRCDS_LAN=1 \
--name=$1 \
cm2network/csgo:sourcemod |
So just to clarify. You did remove it from your Unfortunately, I don't have a system where I can test local network things like this. So sorry for asking such trivial things. |
Hey, i'm also trying to get a local server up and can't seem to be able to connect to it even tho they are on the same machine. I'm using a compose file to structure the setup:
Also, I've just tried deleting and pulling the lastet version of the image, and the |
No I didn't delete it from the server.cfg because the |
This did not work for me. Had the issue that I could not connect to the server as: Already tried restarting the server and my game multiple times. I had used port EDIT: (i got it to work through the server browser) |
@michihupf check that you don't have another container running at the same time that is using the port ( |
A few notes:
|
I do not even have another container stopped which is the weird part. The only running container is this csgo container.
I had the same issue this fixed it for me as well. Edit: |
Can confirm this is still an issue as of the writing of this comment. Despite SRCDS_LAN set to 1, I have to manually set sv_lan to 1 in server.cfg to connect. |
Hello,
I have the same issue than the #56 . I can't connect to the server in local. I've used
docker run -d --net=host -v $(pwd)/csgo-data:/home/steam/csgo-dedicated/ --name=csgo-dedicated cm2network/csgo
to connect (I haven't set SRCDS_TOKEN because everything is on the same computer).I am running the container on ArchLinux and the logs seems normal :
Do you have any idea ? I probably haven't setup docker correctly, that's my first time using it.
Thank's.
The text was updated successfully, but these errors were encountered: