设备和电脑处于同一网段,现有一个智能设备,需要访问到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 Allow from all < /Directory >
仍然没有权限。是不是跟防火墙有关系?或者如果用电脑广播出WiFi,让设备连上WIFI,就不会出现这种情况了?