2011-09-06 157 views
1

我有一个android应用程序,它从本地服务器获取数据。我在模拟器上正常工作。但我需要帮助,我如何能在设备上实现这一点。我一直在使用IPv4的尝试,但XAMPP给出了规定将android设备连接到本地服务器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". 

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

感谢

+0

本地服务器是什么?这是在你的电脑上? –

+0

雅和我想连接我的手机 – user591124

回答

2

好了,手机需要在本地网络(通过无线网络)上,或者你需要改变你的httpd-xampp.conf允许非本地客户端连接到您的服务器,如果它的访问从网络之外(我怀疑是)。

+0

http://www.apachefriends.org/f/viewtopic.php?f=17&t=35110 –

+0

你的电脑有什么IP?你的手机有哪些IP?你如何试图访问你的本地xampp服务器? –