1 Star 0 Fork 53

Lucky.麒麟 / hp

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

介绍

内网穿透工具.

启动

服务端启动

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

java -jar hp-server.jar

看到输出表示启动成功:

hp server started on port 7731

默认服务端端口号是7731。注意这个端口号是 hp 客户端连接 hp 服务器的端口号,并非对外网提供访问的端口号。

客户端启动

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

java -jar hp-client.jar -server_addr 127.0.0.1 -server_port 7731 -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://211.161.xxx.xxx:10000 在外网访问。

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.

简介

内网穿透系统 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/molonglove/hp.git
git@gitee.com:molonglove/hp.git
molonglove
hp
hp
master

搜索帮助