Total Pageviews

5,390,679

Tuesday, 18 March 2025

tcp2ws

 TCP to WebSocket

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 branch.

image

development

RUST_LOG=debug cargo run -- server 
from https://github.com/rust-net/tcp2ws 

No comments:

Post a Comment