Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/218.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将android设备连接到本地服务器xampp_Android_Xampp_Localhost - Fatal编程技术网

将android设备连接到本地服务器xampp

将android设备连接到本地服务器xampp,android,xampp,localhost,Android,Xampp,Localhost,我有一个android应用程序,它从本地服务器获取数据。我在模拟器上工作正常。但是我需要关于如何在设备上实现这一点的帮助。我尝试过使用ipv4,但xampp给出了一个错误,其中指出 Access forbidden! New XAMPP security concept: Access to the requested directory is only available from the local network. This setting can be configured in

我有一个android应用程序,它从本地服务器获取数据。我在模拟器上工作正常。但是我需要关于如何在设备上实现这一点的帮助。我尝试过使用ipv4,但xampp给出了一个错误,其中指出

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".
我不确定如何配置它,以便设备可以使用此地址


谢谢

好的,手机需要在本地网络上(通过wifi),或者您需要更改httpd-xampp.conf以允许非本地客户端连接到您的服务器,如果可以从网络外部访问(我怀疑是这样)。

什么本地服务器?这在你的电脑上吗?我和你想连接我的手机你的电脑有什么IP?你的手机有什么IP?您如何尝试访问本地xampp服务器?