I have creted a websocket in php and I am using angularjs in frontend. My websocket and client connection works well on localhost but when I am trying it to push to a live server it says WebSocket connection to 'ws://IP:8090/php-socket.php' failed: Error in connection establishment: net::ERR_CONNECTION_TIMED_OUT. Need help...
I have tried searching many options, I found binding it with 0.0.0.0 which doesn't work as well.
var Affiliate = angular.module('Affiliate', ['ngWebSocket']);
Affiliate.factory('ATP', function ($websocket){
var ws = $websocket("ws://IP:8090/php-socket.php");
}