ARTICLE AD BOX
I developed a PHP websocket server :
$serverSocket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); socket_set_option($serverSocket, SOL_SOCKET, SO_REUSEADDR, 1); if (!socket_bind($serverSocket, $host, $port)) { die("Failed to bind socket. restart System\n"); } socket_listen($serverSocket);$host is the static IP of server. How can I bind the socket to three static IPs at the same time? is it possible and how?
I tried to bind to 0.0.0.0, but it does not work.
Problem is that we have three different internet providers with different static IPs. Because of the situation in our region (end of the world), sometimes we lose one provider so we need to change to another provider. I know it's weird but so it is!
