I'm actually just learning Python. I'm trying out different things with python-valve.
Basically, just copy/pasted this and adjusted it for my own server from this page:
https://python-valve.readthedocs.io/en/latest/rcon.html
#!/usr/bin/python
import valve.rcon
address = ("1.2.3.4", 27020)
password = "myadminpassword"
with valve.rcon.RCON(address, password, timeout=30) as rcon:
response = rcon.execute("broadcast Hello, world!")
print(response.text)
The firewall on my server is open, I can telnet to the RCON port (specified on the command line and in the game ini file.
I am using battlemetrics.com using the same port on the public IP address (forwarded from the router) which just works.
When I change the port to the incorrect port, I immediately get a 'connection refused'. When I change the IP address, it never connects. When I change the password to be incorrect, it actually tells me the password is wrong.
It connects, authenticates, but the command is never executed.
Any ideas please?
Thanks.
I'm actually just learning Python. I'm trying out different things with python-valve.
Basically, just copy/pasted this and adjusted it for my own server from this page:
https://python-valve.readthedocs.io/en/latest/rcon.html
The firewall on my server is open, I can telnet to the RCON port (specified on the command line and in the game ini file.
I am using battlemetrics.com using the same port on the public IP address (forwarded from the router) which just works.
When I change the port to the incorrect port, I immediately get a 'connection refused'. When I change the IP address, it never connects. When I change the password to be incorrect, it actually tells me the password is wrong.
It connects, authenticates, but the command is never executed.
Any ideas please?
Thanks.