连接Android设备到本地服务器XAMPP [英] connect android device to local server xampp

查看:1141
本文介绍了连接Android设备到本地服务器XAMPP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个Android应用程序从本地服务器获取数据。我正常工作在模拟器上。但我需要帮助,我怎么能做到这一点的设备本身。我已经使用IPv4尝试,但XAMPP给它规定

I have an android application which takes data from the local server. I works properly on the emulator. But i need help as to how i can achieve this on the device itself. I have tried using the ipv4 but xampp gives a error which states

Access forbidden!

New XAMPP security concept:

Access to the requested directory is only available from the local network.

This setting can be configured in the file "httpd-xampp.conf".

我不知道我怎么可以配置它,从而使设备可以使用此地址。

I am not sure how i can configure it so that the device can use this address.

感谢

推荐答案

那么,手机需要在本地网络(通过WiFi)或你需要改变你的httpd-xampp.conf允许非本地客户端连接到服务器,如果是从网络的(我怀疑它是)。

Well, the phone needs to be on the local network (via wifi) or you need to change your httpd-xampp.conf to allow non-local clients to connect to your server, if it's accessible from outside of the network (I doubt it is).

这篇关于连接Android设备到本地服务器XAMPP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆