GithubHelp home page GithubHelp logo

Comments (3)

CM2Walki avatar CM2Walki commented on August 18, 2024

Side note: I do not pass SRCDS_TOKEN, but that should not change anything.

If you don't, then connections will be restricted to LAN only. Make sure to keep that in mind. So if the server is hosted on a public IP you won't be able to connect.

Given the comment, I assume that you are aware of that though.

I'm not knowledgeable about Docker for Windows, so I can't really help you further. However, if you manage to find the solution let me know :)!

from csgo.

t-h-e avatar t-h-e commented on August 18, 2024

Yeah, I'm aware that the connections are restricted to LAN. I was actually just trying to use the container for a LAN setup.

I am not completely sure how windows runs docker, but the networking to connect to the containers is definitely different to linux. I tried updating windows to have WSL 2 support, as I thought that would change the networking, but the container seems to run in a completely different network, which makes it not possible to run a LAN setup with csgo in a container.

When setting the SRCDS_TOKEN everything works fine, when publishing the port 27015 on windows.

Anyway, thanks for the container 😃

PS: Maybe a question for another thread: Why add the following commandline argument: -v /home/steam/csgo-dedicated/? Seems to work with and without it.

from csgo.

CM2Walki avatar CM2Walki commented on August 18, 2024

@t-h-e
Glad it works on Windows using the token! It's very likely because srcds doesn't detect the docker bridge as a private network for whatever reason (probably some sort of pattern matching that's failing).

PS: Maybe a question for another thread: Why add the following commandline argument: -v /home/steam/csgo-dedicated/? Seems to work with and without it.

Yes, it works without but it's a horrible idea not to use a volume, since the data has to be downloaded first. That would mean you would be saving every change into a separate layer using the selected storage driver (usually overlay2). The initial game server download & successive updates would keep adding more and more layers, ballooning the container more and more.

The rule of thumb is:
Data that changes a lot (for example database) -> volume
Application that remains the same (static webserver) -> storage driver

from csgo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.