且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过 android 连接本地主机 - 连接到 10.0.2.2 被拒绝

更新时间:2021-10-24 05:49:41

好的去 Apache httpd.conf(位于 Apache 文件夹中):并搜索

alright go to Apache httpd.conf (located in Apache folder): and search for

Order Deny,Allow
Deny from all
Allow from 127.0.0.1

并检查第二行是否为拒绝,如果是则将其更改为:

and check if the second line is Deny, if it is then change it to:

Allow from all

然后重新启动 Appache 服务器,并告诉我反馈.

then restart the Appache server, and tell me the feadback.

编辑强>

在您的真实设备上试用:

try it out in your real device:

转到 CMD 并在 IPv4 下键入 ipconfig 获取 IP 地址并更改 IP,它看起来类似于:

go to CMD and type ipconfig under IPv4 take the IP address and change the IP it will look similar to this:

http://192.168.0.106:8080/mylibman/data.php // similar to this.

关闭电脑中的防火墙和任何防病毒应用程序

请给我反馈.