1

I have seen this question

I am creating a flutter app and restful API with Laravel. it is work on AVD with url = "10.0.2.2:8000". and my browsers on computer url = "localhost:8000". I turned off the firewall on windows 10. I can access to Xampp dashboard from my phone's browser "192.168.1.8:80" , but it doesn't work with port 8000

My computer Ip

Xampp server

MHDEZ
  • 820
  • 2
  • 10
  • 17

2 Answers2

2

Try this:

php artisan serve --host 0.0.0.0 --port 80

Just make sure that the port is free.

Reference: https://stackoverflow.com/a/30675683/5192105

Sachin Bahukhandi
  • 2,378
  • 20
  • 29
-1

php artisan serve --host=you ip address

  • While it’s acceptable to provide command-only answers, it’s often more useful for the community if you can also provide an explanation of the command and help people understand _why_ it addresses the problem. That can reduce the number of follow-up questions, and help new developers understand the underlying concepts. Would you mind updating your question with additional detail? – Jeremy Caney May 13 '20 at 00:05