Search code examples
windowslaravelportfirewallserve

Windows Firewall - Laravel Artisan Serve - Allow Port in Inbound Rule (not working)


I'm using Laravel..And i develop a website... And I want try to access the site from other devices....

.

.

I run php artisan serve --port=4042 --host=0.0.0.0 in my computer (windows 10)..

And I allow port 4042 by create new Inbound Rules in Windows Firewall (as in picture below): enter image description here

But when I access from my mobile phone, it shows error as in picture below: enter image description here

But I can access the web if I turn off the whole Firewall.... enter image description here

But I dont want disable the whole Firewall, I just want to allow port 4042 only)....

Thanks..


Solution

  • What a silly mistake.... I just found the problem after hours googling and searching the solution.

    The problem is the Firewall block php.exe program.... I don't know at what time I add that rule... So, i just delete that rule...And the problem solved.

    enter image description here