Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

User1980's avatar

Unable to allow websockets with PHP artisan maintenance command

Hi all,

I would like to test my websockets communications on Laravel 6, but I can only get them to work when using:

PHP artisan up

I tried this:

php artisan down --allow=127.0.0.1 --allow=192.168.0.0/16

But same issue. Any idea why please?

Thanks

0 likes
1 reply
bugsysha's avatar

Figure out first where are your requests coming from. You can probably do dd(request()->ip());. Then try to use that IP address.

Please or to participate in this conversation.