DEV Community

Discussion on: Laravel, artisan serve, and HTTPS

Collapse
 
nmaa3003 profile image
Nik Azri

Is this working if u run php artisan serve --host 0.0.0.0 and then access the localhost via ipv4?

I still looking for way to access https localhost using ipv4 via my mobile phone.

So far only manage to access https on the laptop only.

Collapse
 
robertobutti profile image
Roberto B.

For listening and accepting connection from other devices, you have to bind the service exposed (in this case Vite), to address 0.0.0.0.
To do this, you have to set host parameter in vite.config.js as '0.0.0.0'.

Image description