Not sure I understand your question, but you can specify both host and port when booting up the server.
php artisan serve --host=some.other.domain --port=8001
daniaaalarshad liked this reply
Is there a way to set the --host and --port through the .env file?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community