Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help TCP Over Websocket #512

Open
marudevx opened this issue Jun 24, 2024 · 2 comments
Open

Need help TCP Over Websocket #512

marudevx opened this issue Jun 24, 2024 · 2 comments

Comments

@marudevx
Copy link

marudevx commented Jun 24, 2024

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
Copy link
Member

You need to use forward+ws in client side:

gost -L tcp://:18100 -F forward+ws://publichost:28100 

@marudevx
Copy link
Author

marudevx commented Jun 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants