GithubHelp home page GithubHelp logo

g4nproxy's Introduction

g4Nproxy

使用手机4G流量提供高质量的代理服务

项目简介

这是一个代理服务共享系统,可以将多个android手机组建成一个http代理服务集群。可以实现通过变化的手机的地理位置,来达到拥有动态IP的功能

注意

目前只支持HTTP/HTTPS层的协议代理

部署指北

服务器部署

  1. 修改端口地址为:com.xulei.g4nproxy_protocol.g4nproxyServerPort
    // 请求服务器port端口
    int g4nproxyServerPort = 30000;

2.springboot 打包 执行命令 ./gradlew g4nproxy-server:bootJar,之后将会得到文件 g4nproxy-server/build/libs/g4nproxy-server-0.0.1-SNAPSHOT.jar 3.上传至服务器 ,执行命令nohup java jar path/to/g4proxy-server-0.0.1-SNAPSHOT.jar &

客户端部署

1.修改服务器IP和端口的地址为:com.xulei.g4nproxy_protocol.g4nproxyServerPort

    // 请求服务器port端口
    int g4nproxyServerPort = 30000;
    // 请求服务器IP地址
    String g4nproxyServerHost = "127.0.0.1";
  1. 生成APK文件 ./gradlew app:assembleRelease 将会得到apk文件 app/build/outputs/apk/release/app-release.apk
  2. 使用 adb install命令安装apk文件至手机

使用说明

在部署完毕后,http://「your ip 」:30000/portList 可以查看已经连接上服务器的手机,一个手机对应一个端口,可以通过访问这些端口来让手机作为代理服务器

效果图

效果图

Finished Job

  • 能够实现 curl -x 127.0.0.1:30001 www.baidu.com 这样的短连接代理请求
  • 长连接的代理(ex:下载一个几十M的文件)
  • 并发连接采用序列号来区分(废弃了旧版的每次请求均建立一次连接的做法)

UnTest

  • 大规模的并发测试

致谢

捐赠

如果你觉得作者辛苦了,可以考虑请作者喝一杯卡布奇洛☕️

donate code

g4nproxy's People

Contributors

metatronxl avatar

Watchers

James Cloos avatar

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.