A Proxy That Allows Players To Connect To Remote Servers
To use the proxy you need to have Python >= 3.7.x
pre-installed.
Download and install the proxy from releases:
wget https://github.com/MCPI-Revival/proxy/releases/download/0.3.3/mcpi-proxy_0.3.3.deb
sudo apt-get install ./mcpi-proxy_0.3.3.deb
sudo rm mcpi-proxy_0.3.3.deb
wget https://github.com/MCPI-Revival/proxy/releases/download/0.3.3/mcpi-proxy_0.3.3.deb
yum -y install alien
alien -r mcpi-proxy_0.3.3.deb generated
rpm -ivh --nodeps --force mcpi-proxy-0.3.3.noarch.rpm
Run the mcpip
command as:
mcpip server_addr server_port scr_port
Replace server_addr with the server IP. If the server uses a port different from the default one (19132), replace server_port with the different server port. If you want to use a specific port on your device to connect to the server (eg. you have another proxy instance running), replace scr_port with the port you want it to originate from.
The proxy exposes the following methods through the Proxy
class in the mcpip
Python 3 module:
Initializes the class.
Sets the name
option to value
. Avaiable options:
"src_addr"
: The source address."src_port"
: The source port."dst_port"
: The destination port.
Returns the options as a dictionary.
Runs the proxy.
Stops the proxy.
All the code of this project is licensed under the GNU General Public License version 2.0 (GPL-2.0).
All the documentation of this project is licensed under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.