Unable bind for the same port in PHP server socket programming -
i trying bind socket same port, getting error.
socket_bind(): unable bind address [0]: 1 usage of each socket address (protocol/network address/port) permitted. in c:\xampp\htdocs\my\server.php on line 79 not bind socket
here 79-th line:
$result = socket_bind($socket, $host, $port) or die("could not bind socket\n");
how fix this?
i trying bind socket same port
use different port or kill application bound port trying bind to. speaking 1 application can bound port @ time.
netstat -o
used find ports in use via cmd in windows.
Comments
Post a Comment