主要分为三个步骤:

第一步:获取本Mac的ip地址

可参考我的这篇文章:Mac下查看本机IP地址
<https://blog.csdn.net/hongyuancao/article/details/85758103>

如:我的ip地址是

192.168.3.94 <http://192.168.3.94/basic/web/index.php?r=upload/test2>

第二步:找到你项目的地址路由

如:我的本地项目地址是

http://127.0.0.1/basic/web/index.php?r=xxx/test
<http://127.0.0.1/basic/web/index.php?r=upload/test>

第三步:把Mac的地址替换掉127.0.0.1

如:我的替换后是 

http://192.168.3.94/basic/web/index.php?r=xxx/test2
<http://192.168.3.94/basic/web/index.php?r=upload/test2>

那么,别人就可以访问你的本地项目了!

 

欢迎指导!

友情链接
ioDraw流程图
API参考文档
OK工具箱
云服务器优惠
阿里云优惠券
腾讯云优惠券
华为云优惠券
站点信息
问题反馈
邮箱:ixiaoyang8@qq.com
QQ群:637538335
关注微信