Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot bind IPv6 to local development server "artisan serve" #47803

Closed
MuriloChianfa opened this issue Jul 22, 2023 · 1 comment
Closed

Cannot bind IPv6 to local development server "artisan serve" #47803

MuriloChianfa opened this issue Jul 22, 2023 · 1 comment

Comments

@MuriloChianfa
Copy link
Contributor

Laravel Version

10.15.0

PHP Version

8.1.21

Database Driver & Version

Debian 11

Description

Hello guys, when i decide to reproduce the bug IPv6 URLs with square brackets are not supported by Laravel's routing system, i created a new laravel project from streach to try to reproduce this... but dont be possible to run the local development server with "artisan serve" command with IPv6 address:

image

Notice that only IPv4 is possible.
I have seemed the implementation serve command and have founded the explode by : but it is used when try to bind the IPv6 address as host.

Steps To Reproduce

  • composer create-project --no-install --no-scripts --prefer-dist laravel/laravel test
  • cd test
  • composer install
  • npm install
  • composer run-script post-root-package-install
  • composer run-script post-create-project-cmd
  • php artisan serve --host="[::1]"
@elijahcruz12
Copy link

I'm curious as to why you would bind to IPv6 with Artisan Serve, as it's meant to use locally, not putting it down, just certainly interesting as I've never thought of that idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants