https://github.com/rust-net/tcp2ws
TCP to WebSocket
https://github.com/rust-net/tcp2ws
cdn-support network tcp2ws
Last synced: 3 months 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 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-23T10:04:33.000Z (over 1 year ago)
- Last Synced: 2024-11-03T16:37:51.678Z (8 months ago)
- Topics: cdn-support, network, tcp2ws
- Language: Rust
- Homepage:
- Size: 243 KB
- Stars: 79
- Watchers: 1
- Forks: 15
- 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.

# development
```
RUST_LOG=debug cargo run -- server
```