Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rust-net/tcp2ws
TCP to WebSocket
https://github.com/rust-net/tcp2ws
cdn-support network tcp2ws
Last synced: 7 days ago
JSON representation
TCP to WebSocket
- Host: GitHub
- URL: https://github.com/rust-net/tcp2ws
- Owner: rust-net
- Created: 2023-03-02T09:12:21.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-23T10:04:33.000Z (10 months ago)
- Last Synced: 2024-08-02T12:24:12.069Z (3 months ago)
- Topics: cdn-support, network, tcp2ws
- Language: Rust
- Homepage:
- Size: 243 KB
- Stars: 75
- Watchers: 1
- Forks: 13
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# tcp2ws
```
client <------ tcp ------> server
to:
client <---tcp2ws---> websocket <---tcp2ws---> server
```server:
```
tcp2ws server -l 8080 -p 22
```client:
```
tcp2ws -l 2222 -w ws://server:8080
tcp2ws -l 2222 -w ws://server:8080 -udp server:1234 # UDP forward
```now, you can use `ssh root@client -p 2222` which should be the same as `ssh root@server`
and we have a Web GUI client in [web-client](https://github.com/develon2015/tcp2ws/tree/web-client) branch.
![image](https://user-images.githubusercontent.com/27133157/233881091-887a7fc9-b21d-43ff-9838-437a4f0c5e46.png)
# development
```
RUST_LOG=debug cargo run -- server
```