Home > Backend Development > PHP Tutorial > 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
Release: 2016-10-18 08:41:56
Original
1123 people have browsed it

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>
Copy after login

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?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template