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

限于喜欢 提交于 2021-02-11 15:19:15

问题


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):

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

But I can access the web if I turn off the whole Firewall....

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

Thanks..


回答1:


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.



来源:https://stackoverflow.com/questions/58180794/windows-firewall-laravel-artisan-serve-allow-port-in-inbound-rule-not-worki

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!