Ask coding questions

← Back to all posts
websocket connection from Boost/Beast C++ client failed
gxm11

I compiled the websocket example of beast library: example/websocket and test OK both on echo.websocket.org and piesocket.com.

However I cannot use the complied exe to connect to my simple websocket server on REPL. The 404 code is returned while the success handshake code is 101. But, any online websocket client, such as www.piesocket.com/websocket-tester (actually they send websocket request via browser), is OK.

As a summary:

echo.websocket.orgeasyreplwsdb.gxm11.repl.co
from browserOKOK
from beast clientOKFAIL

Could be there a firewall rule to refuse request from beast clients?

Voters
gxm11