设备和电脑处于同一网段,现有一个智能设备,需要访问到thinkphp的接口。
正常在电脑上访问这个接口是:http://localhost/demo/index.php/c/a
或者:http://127.0.0.1/demo/index.php/c/a
那么智能设备怎么才能访问到接口呢?
尝试过用ip访问,但是会出现:you don't have permission to access on this server.
修改过apache的httpd.config文件:
< Directory / >
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
< /Directory >仍然没有权限。是不是跟防火墙有关系?
或者如果用电脑广播出WiFi,让设备连上WIFI,就不会出现这种情况了?










