Comments (6)
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.
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.
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.
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.
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.
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)
- a2s.players name doesn't work for "7 Days to Die" HOT 4
- Is it possible to query every server ? HOT 1
- Question HOT 3
- How do i get an output?
- A2S_RULES not decoding correctly ? HOT 13
- [Question] Multiple Query HOT 1
- Is it possible to to see if player is on CT or T Side? HOT 1
- Rust server returning random player names instead of actual player names when using a2s.players HOT 3
- S2C_CHALLENGE support? HOT 3
- implementing player steamid's if connected using steam HOT 1
- Strange a2s.exceptions.BufferExhaustedError HOT 3
- Proposal: add A2S_PING for query server HOT 1
- Rust server names HOT 2
- query is inaccurate HOT 1
- suggestion HOT 1
- Class attribute docstrings show wrong values. HOT 3
- player_count HOT 2
- Request: Get MvM Mission and wave progress HOT 2
- a2s.arules has data error while a2s.rules doesnt HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-a2s.