Giter VIP home page Giter VIP logo

remote-bind's Introduction

remote-bind

将本地服务映射到公网

Install

Windows / Linux: releases

Android: remote-bind-apk

服务器中继

在服务器 x.x.x.x1234 端口上运行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%的成功率

remote-bind's People

Contributors

develon2015 avatar kotiln avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

remote-bind's Issues

想确认一下数据是否没有加密

你好,想问一下,像影射到本地端口到远程服务器上,这段路是否没有加密,我不太懂rust代码,看了下似乎是纯粹代理,想向作者确认下

bug report

KEEPALIVE:检测到后端服务器 59.172.37.6:64943 掉线
释放端口 38001
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 107, kind: NotConnected, message: "Transport endpoint is not connected" }', src/main.rs:74:47

请教一个使用问题

客户端分别是手机还有电脑,想使用手机远程rdp连接电脑,按照教程搭建好之后将端口设置在51414上,然后手机使用apk将本地端口设置在127.0.0.1:5555 来连接,发现如法连接,想问下这怎么处理,是穿透没成功吗?

电脑客户端日志

PS C:\Users\RUO> C:\Users\admin\Downloads\client.exe xxx.xxx.xxx.xxx:7000 51414 passwd 127.0.0.1:3389
2023-10-04 22:30:38 - [I] - client\src\main.rs:97 -> 正在连接服务器:xxx.xxx.xxx.xxx:7000
2023-10-04 22:30:38 - [I] - core\src\client.rs:18 -> 正在连接
2023-10-04 22:30:38 - [I] - core\src\client.rs:20 -> 连接完成
2023-10-04 22:30:38 - [I] - client\src\main.rs:104 -> 正在绑定端口:51414
2023-10-04 22:30:39 - [I] - client\src\main.rs:108 -> 服务已绑定: 127.0.0.1:3389 -> xxx.xxx.xxx.xxx:51414

服务端日志

root@share:~# ./server-linux-amd64 7000 passwd
2023-10-04 14:30:22 - [I] - server/src/main.rs:76 -> Server started on xxx.xxx.xxx.xxx:7000
2023-10-04 14:30:22 - [I] - core/src/server.rs:71 -> STUN started on 0.0.0.0:7001
2023-10-04 14:30:22 - [I] - core/src/server.rs:71 -> STUN started on 0.0.0.0:7000
2023-10-04 14:30:26 - [I] - core/src/server.rs:118 -> PORT(7000) -> Agent connected: 112.96.66.13:52900
2023-10-04 14:30:26 - [I] - core/src/server.rs:122 -> AGENT(112.96.66.13:52900) -> Reading command...
2023-10-04 14:30:26 - [I] - core/src/server.rs:37 -> PORT(51414) -> Bind succeed!
2023-10-04 14:30:31 - [E] - core/src/server.rs:154 -> PORT(51414) -> Agent 112.96.66.13:52900 no response, release the port!
2023-10-04 14:30:38 - [I] - core/src/server.rs:118 -> PORT(7000) -> Agent connected: 120.85.126.143:11056
2023-10-04 14:30:38 - [I] - core/src/server.rs:122 -> AGENT(120.85.126.143:11056) -> Reading command...
2023-10-04 14:30:38 - [I] - core/src/server.rs:37 -> PORT(51414) -> Bind succeed!

SmartSelect_20231004_223509_Microsoft Remote Desktop

Screenshot_20231004_223455_RemoteBind

没有glibc的版本嘛?

你好,我看到relase中的版本都是musl版本,但是常用的Linux版本都是glibc,可否出一个gnu-glibc的版本。

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.