I have a local php(Laravel) server. I can access the domain "mydomain.dev" from an simulator but it does not work when I try to access it from a real device. I have the app running with the device connected to the same wifi network but it still does not work.
Asked
Active
Viewed 364 times
-1
-
Have you tried this already? http://stackoverflow.com/questions/30675025/access-to-laravel-5-app-locally-from-an-external-device – Duikboot May 16 '16 at 01:08
-
Please post you code it will be useful to recognize your question – Willie Cheng May 16 '16 at 01:09
-
Does the DNS server that your iOS device is connecting to know how to resolve `mydomain.dev` to the IP address of your local server? If not then you will need to fix this – Paulw11 May 16 '16 at 01:36
2 Answers
0
Open your command prompt/terminal Type
windows ipconfig
linux ifconfig -a
or ip addr show
write your IPv4 adress
exemple (windows)
Then Run your server php artisan serve
or whatever you are using (wamp/laragon or easyphp ..etc)
then go to your browser in your phone and navigate to mydomain.dev
This should work.

Achraf Khouadja
- 6,119
- 4
- 27
- 39
0
Please try to use IP address instead of mydomain.dev. When running on a real device, it will search dns server to look up mydomain.dev. If the dns server can't recognize this url, your device can't open it.

Joey Yi Zhao
- 37,514
- 71
- 268
- 523