1

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..

Syamsoul Azrien
  • 2,534
  • 4
  • 32
  • 55

1 Answers1

7

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

Syamsoul Azrien
  • 2,534
  • 4
  • 32
  • 55
  • 1
    thanks for following up with the solution - it gave me the clue I needed for why a rule I created wasn't working. In my case apparently the app installer for the application serving the port had created rules to block incoming ports on public networks, which were overriding my rule. – PhysicalEd May 25 '22 at 19:44
  • thanks!! you literally saved my day... my case was Python `http.server` not working – wtj May 15 '23 at 17:54