web-socket
web-socket copied to clipboard
start serv failed
php artisan socket:serve
In TcpServer.php line 164:
Failed to listen on "tcp://127.0.0.1:1010": Permission denied
Hey.
All is correct, usually such ports require access rights.
Change the port, for example, to 8081
or write this command using the administration rights (in case no other program uses this port).
Ubuntu:
allow data transfer:
ufw allow 1010:1020/tcp
run as administrator:
sudo php artisan socket:serve
Such actions will solve your problem. But I strongly do not recommend using such ports.