Giter Club home page Giter Club logo

proxy's Introduction

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

proxy's People

Contributors

nobody5050 avatar noozabooz avatar thebrokenrail avatar torralbaa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

proxy's Issues

This seems to be a duplicate

This repo seems to be a duplicate of mcbes.. If you’d like to fork mcbes into this org or include it natively as a mirror please do. I’d also like to join the org if possible i have a few ideas for your launcher.

The method of installing on Centos

yum  -y install  alien   
alien -r mcpi-proxy_0.3.2.deb generated   

Use alien to generate a rpm pakage , and then:

rpm  -ivh  --nodeps  --force  mcpi-proxy-0.3.2-2.noarch.rpm  

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.