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

server not recheable #56

Closed
tomflenner opened this issue Apr 1, 2021 · 11 comments
Closed

server not recheable #56

tomflenner opened this issue Apr 1, 2021 · 11 comments
Assignees
Labels
question Further information is requested

Comments

@tomflenner
Copy link

Hello,

i tried to use your image like this :

docker run -d --net=host --name=csgo-dedicated -e SRCDS_TOKEN={mytoken} cm2network/csgo

And i cannot connect to the server, and even ping my server on the port 27015.

Do you have any idea?

Thanks.

@CM2Walki CM2Walki self-assigned this Apr 2, 2021
@CM2Walki CM2Walki added the question Further information is requested label Apr 2, 2021
@CM2Walki
Copy link
Owner

CM2Walki commented Apr 2, 2021

Hey,

Are you running the container on Docker for Windows?

@tomflenner
Copy link
Author

Hey,

No, on Debian

@CM2Walki
Copy link
Owner

CM2Walki commented Apr 2, 2021

Do you have a firewall enabled (if yes is the port open)?

If no, can you please post the docker logs of the container?

@gabrielfgularte
Copy link

Hi there, same problem here. I'm on Docker for Windows and have no idea on what IP I should use on connect command. Also, the server doesn't appear on local servers (LAN) or in Internet servers.

Any ideas?

@CM2Walki
Copy link
Owner

CM2Walki commented Apr 9, 2021

If you run docker on windows, you can't use --net=host, you'll need to use port mappings instead -p.

The IP should be the private IP of your machine if you are trying to connect from inside your network and the public one of your router if you are trying to connect externally. The latter only works if you port forward your game server ports from your router to your machine.

@gabrielfgularte
Copy link

Thank you very much, @CM2Walki for your attention and fast response on this. I'll give it a try with -p and post the results here. (Sorry my rusty english).

@gabrielfgularte
Copy link

Hi there, it worked! Partially, but it worked. Now the server shows up on the LAN servers, but I can't connect to it still. It says "server not responding". Throught the connect on console, it just shows the "Connection timeout after 30 retries" error.

Any tips? Thank you in advance ;)

@CM2Walki
Copy link
Owner

CM2Walki commented Apr 9, 2021

Considering you are hosting a LAN server, make sure your PC's firewall allows connections to the game server ports.

For connections from outside, have you passed a valid SRCDS_TOKEN?

@gabrielfgularte
Copy link

gabrielfgularte commented Apr 9, 2021

Considering you are hosting a LAN server, make sure your PC's firewall allows connections to the game server ports.

I've disabled firewall to make those tests. Now it is enabled, but I have set two exceptions for port ranges 27015-27100 - one for tcp and one to udp.

For connections from outside, have you passed a valid SRCDS_TOKEN?

Yes, I'm passing my GLST on SRCDS_TOKEN. Even when I'm trying to connect locally.

I have some questions on LAN connection:

  • I HAVE to remove the SRCDS_TOKEN if I want to connect locally or it can be set anyway?
  • many sites and blogs mention the need of a sv_lan param. Do you know if this param is really required to run locally?

To let you know:

  • I'm on Windows 10 using Docker for Windows;
  • I'm trying to connect from a CS:GO client that is installed and running on the same computer that is running Docker;
  • I've already tried to write my own Dockerfile with ubuntu:18.04 to see if it works, but got the same results;
  • I've tried the Docker IP from docker inspect command, tried the IPs on ipconfig command, tried 127.0.0.1 and http://localhost.

Thanks again!

@gabrielfgularte
Copy link

UPDATE: It worked when I'm connecting from other computer from the same network.

@CM2Walki
Copy link
Owner

Hmm, that's interesting. So I assume it's a problem with your hosting PC's routing. Thanks for looking into it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants