web-socket icon indicating copy to clipboard operation
web-socket copied to clipboard

start serv failed

Open ataraxia82 opened this issue 7 years ago • 1 comments

php artisan socket:serve

In TcpServer.php line 164:

Failed to listen on "tcp://127.0.0.1:1010": Permission denied

ataraxia82 avatar Mar 22 '18 05:03 ataraxia82

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.

tabuna avatar Mar 22 '18 07:03 tabuna