javascriptwebsocketkaldi

Connection to websocket via ip address refused by firefox


I want to establish a websocket connection to my own server.

The code I tried was the following one:

var connection = new WebSocket('ws://137.250.171.212:8888/ws/speech');

But I get an error Firefox kann keine Verbindung zu dem Server unter ws://137.250.171.212:8888/ws/speech aufbauen. which translates to Firefox could not establish a connection to ws://137.250.171.212:8888/ws/speech

The server is definetely up and running. I appreciate any help.


Solution

  • The problem was a wrongly configured target URL. Using the correct websocket url solved the issue.