1 Star 0 Fork 53

曙光雷克斯 / hp-内网穿透

forked from HServer / hp-内网穿透 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

介绍

内网穿透工具 支持TCP HTTP HTTPS WS WSS 支持域名绑定

原理图

云后台管理web

服务端启动

在带有公网 IP 的服务器上执行 Java 命令:

java -jar hp-server.jar

默认服务端端口号是9090

如果自己需要修改配置,可以和jar同目录建立一个配置文件 app.properties 内容如下

#9090内网穿透端口数据传输和web管理后台都是这个端口
#80将外界http数据代理到用户端口上
#内网穿透端口和web管理后台都是这个端口
ports=9090,80,8443,443
#提示域名,没有域名写IP也可以
host=ksweb.club
#后台密码
password=123456
#关闭Epoll hserver默认开启得 要关闭 epoll下有问题
epoll=false
# 所有得链接使用得线程池配置
web.businessPool=100

客户端启动

在没有公网 IP 的机器上执行 Java 命令:

java -jar hp-client.jar -server_addr 127.0.0.1 -server_port 9090 -username jishunan  -password 123456 -proxy_addr localhost -proxy_port 3306 -remote_port 10000

参数说明:

  • server_addr hp 服务端的网络地址,即 hp 服务端运行的服务器外网 IP 或 hostname
  • server_port hp 服务端的端口
  • password hp 服务端的 password
  • username hp 服务端的 username
  • proxy_addr 被代理的应用网络地址
  • proxy_port 被代理的应用端口号
  • remote_port hp 服务端对外访问该应用的端口

启动成功后可以通过 server_addr:remote_port 访问被代理的应用,如果被代理的应用是 HTTP 应用,可以通过 http://xxx.xxx.xxx.xxx:10000 在外网访问。 如果账号没有分配10000 端口给他,那么服务器会随机一个端口

hp-windows 模块是一个可视化的客服端,可以在支持java的电脑上运行

安卓客服端

HServer/hp-android-client

MIT License Copyright (c) 2020 黑小马 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

内网穿透系统,支持Android,mac win Linux, 已经稳定运行一年多. 展开 收起
Java
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Java
1
https://gitee.com/wangclwh/hp.git
git@gitee.com:wangclwh/hp.git
wangclwh
hp
hp-内网穿透
master

搜索帮助