GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - rust-net/remote-bind: 内网穿透,支持服务器中继和基于quic的P2P直连两种模式

BranchesTags
Open more actions menu

Latest commit

 

History

54 Commits
54 Commits

Folders and files

NameName
Last commit message
Last commit date
.cargo
.cargo
 
 
android
android
 
 
client
client
 
 
core
core
 
 
oneport
oneport
 
 
server
server
 
 
.gitignore
.gitignore
 
 
Cargo.toml
Cargo.toml
 
 
README.md
README.md
 
 

Repository files navigation

remote-bind

将本地服务映射到公网

Install

Windows / Linux: releases

Android: remote-bind-apk

Docker: imgxx/remote-bind

服务器中继

在服务器 x.x.x.x 的 1234 端口上运行server,并设置密码为 passwd :

$ ./server 1234 passwd
2023-09-04 00:00:00 - [I] - server/src/main.rs:76 -> Server started on x.x.x.x:1234
2023-09-04 00:00:00 - [I] - core/src/server.rs:71 -> STUN started on 0.0.0.0:1234
2023-09-04 00:00:00 - [I] - core/src/server.rs:71 -> STUN started on 0.0.0.0:1235

在局域网主机上运行客户端,将 127.0.0.1:3389 服务映射到 x.x.x.x:13389 上:

$ ./client x.x.x.x:1234 13389 passwd 127.0.0.1:3389
2023-09-04 00:00:00 - [I] - client\src\main.rs:97 -> 正在连接服务器:x.x.x.x:1234
2023-09-04 00:00:00 - [I] - core\src\client.rs:18 -> 正在连接
2023-09-04 00:00:00 - [I] - core\src\client.rs:20 -> 连接完成
2023-09-04 00:00:00 - [I] - client\src\main.rs:104 -> 正在绑定端口:13389
2023-09-04 00:00:00 - [I] - client\src\main.rs:108 -> 服务已绑定: 127.0.0.1:3389 -> x.x.x.x:13389

P2P直连

在要进行P2P访问的主机上运行客户端,监听 127.0.0.1:9833 地址,映射到 x.x.x.x:13389 上绑定的服务:

$ ./client p2p x.x.x.x:1234 13389 127.0.0.1:9833
2023-09-04 00:00:00 - [I] - core\src\client_p2p.rs:27 -> 正在测试
2023-09-04 00:00:00 - [I] - core\src\client_p2p.rs:29 -> 测试成功
2023-09-04 00:00:00 - [I] - core\src\client_p2p.rs:31 -> 服务已启动: 127.0.0.1:9833

注意:P2P无法保证100%的成功率

About

内网穿透,支持服务器中继和基于quic的P2P直连两种模式

Topics

ipv4natp2pquicrelaytcp

Resources

Readme
Activity
Custom properties

Stars

340 stars

Watchers

2 watching

Forks

57 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.