20 Mar 2017 by Jochen Arndt
You are calling socket_bind twice:// Bind socket to portsocket_bind($sock, $address, $port);if (socket_bind($sock, $address, $port) === false) { echo "socket_bind() failed: reason: " . socket_strerror(socket_last_error($sock)) . "\n";}The first call succeeds and the second fails...