Websocket Connection Failed: Error In Connection Establishment: Net::err_connection_refused
Solution 1:
Chrome doesn't allow unsecure websocket (ws) connections to localhost (only wss, so you should setup a TLS certificate for your local web/websocket server). However the same should work fine with Firefox.
Solution 2:
You need to use ws://yourIp:9090/
, where yourIP is like 192.168.?.?
.
Solution 3:
Solution 4:
Port 9090 is used by reactotron. Probably you are using it in your project and your app cannot connect with reactotron because it is closed. Just open reactotron and the error will disappear.
Solution 5:
Usually WebRTC requires a secure connection (that is https). The error you have got is due to TLS/SSL certificates occupied, may be they are not properly configured in your project. Provide a valid TLS/SSL certificate and also configure it correctly in project, then it will work without the above error.
Post a Comment for "Websocket Connection Failed: Error In Connection Establishment: Net::err_connection_refused"