Giter Club home page Giter Club logo

Comments (6)

Nereg avatar Nereg commented on August 20, 2024

For many games, there should be a configuration for that port. That's how they can host multiple servers on one IP. If the server doesn't show up in the steam response on that url , clients can't see the server on the server select screen, afaik. You could launch an nmap or simmular tool on your local instance to figure out which port it uses. The protocol is based on UDP, and I have a wireshark plugin for it somewhere.

from python-a2s.

Cameronsplaze avatar Cameronsplaze commented on August 20, 2024

For many games, there should be a configuration for that port. That's how they can host multiple servers on one IP

Do you mean the info 2457 port? If so it's the default, and I get a response from it locally. It (and game port 2456) are unblocked in the cloud too.

I forgot to mention, my friends and I can connect to the container when it's in the cloud too, it's just getting a2s.info back that's the problem.

I have a wireshark plugin for it somewhere.

Oh that's a really interesting idea! I found this guide, maybe I can point that to the container locally and see more info

clients can't see the server on the server select screen, afaik

Actually does it matter if the server is public vs private? I have a config in the cloud I launch the server with, and force it to be private. I bet when I tried it locally, I used all the default settings and it created a public server. Let me try that real fast

from python-a2s.

Cameronsplaze avatar Cameronsplaze commented on August 20, 2024

Running it as a public server in the cloud is doing the same thing, timing out. Probably a good thing at least, it might mean I can still do private servers w/ friends

from python-a2s.

Cameronsplaze avatar Cameronsplaze commented on August 20, 2024

Maybe it's not firewall related... When I run locally:

docker container run -p 127.0.0.1:2456-2457:2456-2457/udp lloesche/valheim-server

With ONLY 2456-2457/udp open inward locally, I'm able to connect:

>>> import a2s
>>> a2s.info(("127.0.0.1", 2457))
SourceInfo(protocol=17, server_name='My Server', map_name='My Server', folder='valheim', game='', app_id=0, player_count=0, max_players=64, bot_count=0, server_type='d', platform='l', password_protected=True, vac_enabled=False, version='1.0.0.0', edf=177, port=2456, steam_id=90198416891312159, stv_port=None, stv_name=None, keywords='g=0.218.15,n=27,m=', game_id=892970, ping=0.0459046190007939

Also confirmed with docker ps on both systems, PORTS are the same on both...

from python-a2s.

Cameronsplaze avatar Cameronsplaze commented on August 20, 2024

Good news is I think I've eliminated this package being the problem. If I manually start a ec2 instance, and run docker on it, I can connect to that valheim server like expected. It's only when the ecs places the ec2 task on the instance that this happens. At least that means AWS's ip's aren't being blocked by valve or something.

Thanks!

from python-a2s.

Cameronsplaze avatar Cameronsplaze commented on August 20, 2024

I must have did my test before wrong, I confirmed it's SERVER_PUBLIC: False blocking a2s requests for Valheim servers. Testing again confirmed it, and there's this block from the Valheim container code showing they have to do something special to get player count too.

from python-a2s.

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.