Ask coding questions

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

I compiled the websocket example of beast library: example/websocket and test OK both on and

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 (actually they send websocket request via browser), is OK.

As a summary:
from browserOKOK
from beast clientOKFAIL

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