[GH-ISSUE #72] 'php artisan serve' only binds port 8000 to ipv6 ::1:8000 #53

Closed
opened 2026-02-26 02:31:56 +03:00 by kerem · 4 comments
Owner

Originally created by @nodje on GitHub (Dec 16, 2015).
Original GitHub issue: https://github.com/koel/koel/issues/72

Hi,

I resolved myself to use a Laravel provided Vagrant machine for a quick startup.
Everything went fine but in the end when executing php artisan serve
, I get the proper message
Laravel development server started on http://localhost:8000/
but for some reason, netstat -tulpen tells me laravel dev server only binds to ipv6 interface:

tcp6       0      0 ::1:8000                :::*                    LISTEN      900        15874       1993/php7.0

Vagrant port forwards don't seem to allow forward to ipv6 so I'm out of option here.

Are you aware of this problem?
How can I change the laravel port?
Ideally it should bind to all ipv4 interfaces: 0.0.0.0:8000

Originally created by @nodje on GitHub (Dec 16, 2015). Original GitHub issue: https://github.com/koel/koel/issues/72 Hi, I resolved myself to use a Laravel provided Vagrant machine for a quick startup. Everything went fine but in the end when executing `php artisan serve` , I get the proper message `Laravel development server started on http://localhost:8000/` but for some reason, `netstat -tulpen` tells me laravel dev server only binds to ipv6 interface: ``` tcp6 0 0 ::1:8000 :::* LISTEN 900 15874 1993/php7.0 ``` Vagrant port forwards don't seem to allow forward to ipv6 so I'm out of option here. Are you aware of this problem? How can I change the laravel port? Ideally it should bind to all ipv4 interfaces: 0.0.0.0:8000
kerem closed this issue 2026-02-26 02:31:56 +03:00
Author
Owner

@NamPNQ commented on GitHub (Dec 16, 2015):

php artisan serve --host 0.0.0.0

<!-- gh-comment-id:165086939 --> @NamPNQ commented on GitHub (Dec 16, 2015): `php artisan serve --host 0.0.0.0`
Author
Owner

@nodje commented on GitHub (Dec 17, 2015):

great! it works :)

<!-- gh-comment-id:165328888 --> @nodje commented on GitHub (Dec 17, 2015): great! it works :)
Author
Owner

@Paraintom commented on GitHub (Dec 30, 2015):

Thank you!

<!-- gh-comment-id:168072487 --> @Paraintom commented on GitHub (Dec 30, 2015): Thank you!
Author
Owner

@gh-thyago-makiyama commented on GitHub (Oct 2, 2018):

Mas que lixo de resposta!

<!-- gh-comment-id:426441814 --> @gh-thyago-makiyama commented on GitHub (Oct 2, 2018): Mas que lixo de resposta!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/koel-koel#53
No description provided.