Skip to content

MCRcon Command

Robomikel edited this page Dec 18, 2020 · 5 revisions

The McRcon command will use MCRcon to try to connect to the server. Using the IP, Port, and Rcon Password from the Variables-<ServerFolder>.ps1 located in the game server root folder. If the connection fails you can try using the private IP to connect to the server. You can change this in the local_setttings.ps1 by changing the variable to on.

# Use private IP for Query and mcrcon
$global:Useprivate = "off"

If you receive a connection error, try setting the above variable to "on"
Running this command will download and install MCRcon from GitHub the first time or if it cannot locate the mcrcon.exe

Depends on Variables: $extip, $ip, $port, $queryport, $rconpassword