Windows防火墙-Laravel Artisan服务-允许入站规则中的端口(不起作用) [英] Windows Firewall - Laravel Artisan Serve - Allow Port in Inbound Rule (not working)

查看:115
本文介绍了Windows防火墙-Laravel Artisan服务-允许入站规则中的端口(不起作用)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Laravel ..并且我正在开发一个网站...而且我想尝试从其他设备访问该网站....

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

.

.

我在计算机(Windows 10)中运行 php artisan serve --port = 4042 --host = 0.0.0.0 .

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

然后通过在Windows防火墙中创建新的 Inbound Rules 来允许端口4042(如下图所示):

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:

但是,如果我关闭了整个防火墙,则可以访问Web....

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

但是我不想禁用整个防火墙,我只想只允许端口4042)....

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

谢谢..

推荐答案

真是个愚蠢的错误....我经过数小时的谷歌搜索并找到了解决方案,才发现了问题.

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

问题是防火墙阻止 php.exe 程序....我不知道我什么时候添加该规则...所以,我只是删除了该规则...并且问题解决了.

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.

这篇关于Windows防火墙-Laravel Artisan服务-允许入站规则中的端口(不起作用)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆