Adrian William
Adrian William

Reputation: 45

How to give on local to other pc access to your project in valet?

When I make a project in laravel I can give access with php artisan serve but if a make a normal project and make host with valet link the PHP artisan don't work because it's not a laravel project. How can i give access to local with valet ? For example i have project.dev and make 192.168.1.5:80 like in laravel.

Upvotes: 2

Views: 956

Answers (2)

user320487
user320487

Reputation:

For a local network, you will need to make sure your port is accessible if your're behind a firewall. You may need to setup port forwarding, as well, if NAT is involved.

Are you trying to make the project accessible to others on the internet? For this, you can use ngrok.

https://ngrok.com/

”I want to expose a local server behind a NAT or firewall to the internet.”

Upvotes: 0

Alexey Mezenin
Alexey Mezenin

Reputation: 163798

You can use the valet park or valet link commands to be able to access your application locally.

Upvotes: 0

Related Questions