go-gost / gost

GO Simple Tunnel - a simple tunnel written in golang
https://gost.run
MIT License
4.33k stars 523 forks source link

Need help TCP Over Websocket #512

Open marudevx opened 4 months ago

marudevx commented 4 months ago

I used the command gost -L tcp+ws://:28100/:18100 (Server side)

gost -L tcp://:18100 -F ws://publichost:28100 (Client side)

It doesn't work as expected. Does it support TCP Over Websocket or not? Please advise me.

ginuerzh commented 4 months ago

You need to use forward+ws in client side:

gost -L tcp://:18100 -F forward+ws://publichost:28100 
marudevx commented 4 months ago

It still doesn't work as expected. The client returns the message "msg":"websocket: bad handshake". The server responds with the message "404 page not found".