从其他设备本地主机访问laravel API

时间:2020-07-16 10:10:17

标签: angular laravel localhost

我有一个前端应用程序(使用angular 8构建)和一个后端应用程序(api)(使用laravel 6构建)

我想从其他计算机访问我的应用程序

当我从机器2访问时:

计算机1:ng从-=>服务器上提供--host 0.0.0.0服务器2:http:// machine1_Ip:4200(工作)

机器1:php artisan服务--host 0.0.0.0 ==>机器2:http:// machine1_Ip:8000(不工作)

错误消息:“ machine1_Ip需要很长时间才能响应” enter image description here

0 个答案:

没有答案