Skip to content
×
PRO Members Get
Full Access
Get off the sidelines and take action in real estate investing with BiggerPockets Pro. Our comprehensive suite of tools and resources minimize mistakes, support informed decisions, and propel you to success.
Advanced networking features
Market and Deal Finder tools
Property analysis calculators
Landlord Command Center
ANNUAL Save 16%
$32.50 /mo
$390 billed annualy
MONTHLY
$39 /mo
billed monthly
7 day free trial. Cancel anytime.
Level up your investing with Pro
Explore exclusive tools and resources to start, grow, or optimize your portfolio.
10+ investment analysis calculators
$1,000+/yr savings on landlord software
Lawyer-reviewed lease forms (annual only)
Unlimited access to the Forums
rcon python

Let's keep in touch

Subscribe to our newsletter for timely insights and actionable tips on your real estate journey.

By signing up, you indicate that you agree to the BiggerPockets Terms & Conditions
Followed Discussions Followed Categories Followed People Followed Locations
Real Estate Technology

Rcon Python 【ULTIMATE · CHEAT SHEET】

pip install rcon Once installed, you can import the library in your Python script:

import rcon # Define server connection details host = 'localhost' port = 25575 password = 'your_rcon_password' # Create an Rcon connection object conn = rcon.Rcon(host, port, password) # Execute a command response = conn.cmd('say Hello, World!') # Print the response print(response) In this example, we create an Rcon connection object using the Rcon class, passing in the server’s hostname, port, and password. We then execute the say command using the cmd method, which returns the server’s response. Here’s an example that demonstrates how to use Rcon Python to automate a task:

import rcon Here’s a simple example that demonstrates how to connect to an Rcon-enabled server and execute a command:

pip install rcon Once installed, you can import the library in your Python script:

import rcon # Define server connection details host = 'localhost' port = 25575 password = 'your_rcon_password' # Create an Rcon connection object conn = rcon.Rcon(host, port, password) # Execute a command response = conn.cmd('say Hello, World!') # Print the response print(response) In this example, we create an Rcon connection object using the Rcon class, passing in the server’s hostname, port, and password. We then execute the say command using the cmd method, which returns the server’s response. Here’s an example that demonstrates how to use Rcon Python to automate a task:

import rcon Here’s a simple example that demonstrates how to connect to an Rcon-enabled server and execute a command: