https://github.com/wandererex/wormhole
wormhole
功能特性
将内网的端口映射到公网,从而达到内网穿透的目的
项目结构
使用
[ol]
[/ol]
java -jar server-1.0.0-SNAPSHOT-jar-with-dependencies.jar --port 8090
[ol]
[/ol]
java -jar proxy-1.0.0-SNAPSHOT-jar-with-dependencies.jar --serverHost 127.0.0.1 --serverPort 8090 --configPath ./config.json
[ol]
[/ol]
{
"mysql": {
"ip": "127.0.0.1",
"port": "3306",
"mappingPort": "3307"
},
"ssh": {
"ip": "127.0.0.1",
"port": "22",
"mappingPort": "2200"
}
}
运行实例