All Projects → MCPI-Revival → proxy

MCPI-Revival / proxy

Licence: GPL-2.0 license
A Minecraft Pi Proxy to allow players to connect to remote servers.

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to proxy

MCPIL-Legacy
Minecraft Pi Launcher (deprecated, use MCPIL-R under our same organization).
Stars: ✭ 62 (+181.82%)
Mutual labels:  minecraft-pi, mcpi, minecraft-proxy, minecraft-pi-edition
minecraft-pi-reborn
Official Mirror Of @TheBrokenRail's Minecraft: Pi Edition: Reborn.
Stars: ✭ 133 (+504.55%)
Mutual labels:  minecraft-pi, mcpi
ElytraProxy
Really customizable Minecraft proxy server with Auth, AntiBot, etc, based on Velocity. Supports 1.7 - 1.17.1
Stars: ✭ 29 (+31.82%)
Mutual labels:  minecraft-proxy

Proxy

A Proxy That Allows Players To Connect To Remote Servers

Getting started

Prerequisites

To use the proxy you need to have Python >= 3.7.x pre-installed.

Installation

For debian based systems like the Raspberry Pi OS:

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

For Fedora/RedHat/CentOS based OSes

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  

Usage

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.

API

The proxy exposes the following methods through the Proxy class in the mcpip Python 3 module:

def __init__()

Initializes the class.

set_option(name, value):

Sets the name option to value. Avaiable options:

  • "src_addr": The source address. "src_port": The source port.
  • "dst_port": The destination port.

def get_options()

Returns the options as a dictionary.

def run()

Runs the proxy.

def stop()

Stops the proxy.

Licensing

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.

CC BY-SA 4.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].