WebSocket protocol is a suitable way to create a reliable two directional connection between a server and a client. WebSocket is using the same ports as HTTP/HTTPS protocols: 80 and 443. However very frequently WebSocket is not such transparent as HTTP and may be blocked by firewalls, proxy or antivirus applications.
Anyway if multiple WebSocket clients do not work better to start testing from the server side and it is an example of local WebSocket server test. The test using wget command, but the same it is possible to do with curl or other CLI web clients.
Here is the wget command itself:
wget -d --no-check-certificate \
--header "Connection: Upgrade" \
--header "Upgrade: websocket" \
--header "Host: 127.0.0.1" \
--header "Origin: https://127.0.0.1:443" \
--header "Sec-WebSocket-Key: " \
--header "Sec-WebSocket-Version: 13" \
In your case WebSocket URL may be different, check what URL is used by WebSocket client and replace external IP/fqdn with 127.0.0.1.
If WebSocket on server side works normally the HTTP response should contain code 101 which indicates that server accepted request to switch protocol from http/https to ws/wss (WebSocket/Secure WebSocket), example of such response:
HTTP/1.1 101 Switching Protocols
It the case if something is going wrong the response code may be different for example 405 (Method Not Allowed):
date: Thu, 20 May 2021 13:24:47 GMT