Home  >  Article  >  Backend Development  >  How does a smart device access the TP interface on the PC within the same LAN?

How does a smart device access the TP interface on the PC within the same LAN?

WBOY
WBOYOriginal
2016-10-18 08:41:561060browse

The device and the computer are in the same network segment. There is an existing smart device that needs to access the thinkphp interface.
Normal access to this interface on a computer is:
http://localhost/demo/index.php/C/A
or:
http://127.0.0.1/demo/index.php/C/A
So how can smart devices access the interface?
Tried to access via IP, but the message appears: You don't have permission to access on this server.
Modified Apache's httpd.config file:

<code>< Directory / >
     Options FollowSymLinks
     AllowOverride None
     Order deny,allow
     Deny from all
< /Directory ></code>

Still no permissions. Is it related to the firewall?
Or if you use a computer to broadcast WiFi and allow the device to connect to WIFI, this situation will not occur?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn