how can I test my API in different PC which is in same WIFI network using my IPv4 address ? like if i have if 192.168.2.222 then I got the error URL image plz tell me how can I solve.The API is working fine in local host. but in IPv4 I got this error so plz guide me. I have tried all the configuration from different sources but still getting this error.
Advertisement
Answer
serve the application on your host IP address
command
php artisan serve --host=192.168.2.222
Now you can access the app on another computer on the same network using the ip address
If connection to the app is frozen, try and check your firewall settings.
But on default, this command should do the magic without any extra steps.