2016-04-11 190 views
-1

我跑在我的设备我的Android应用程序... 我需要从我的手机访问本地主机服务器,这样做,我在手机浏览器中键入我的电脑的IP地址,为确保我打开服务器,但它没”工作, 有人可以帮助我抛出这个访问本地主机服务器连接的Android移动设备

+0

你的手机本身就是它自己的本地主机。每个设备都是本地主机。它自己的。你在说什么?最好不要使用localhost这个词。 – greenapps

+0

您使用哪个网络访问服务器?你的局域网? –

回答

0

的第一件事你使用的端口号与本地主机,如果是,则IP地址也 如使用同一端口号本地主机:8080,然后172.167.172.23:8080

===================================== ==================

如果上面没有你的情况下,然后尝试以下 1)找到httpd.conf文件 添加“允许从所有”。

<Directory "d:/wamp/www/"> 
# 
# Possible values for the Options directive are "None", "All", 
# or any combination of: 
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews 
# 
# Note that "MultiViews" must be named *explicitly* --- "Options All" 
# doesn't give it to you. 
# 
# The Options directive is both complicated and important. Please see 
# [httpd.apache.org] 
# for more information. 
# 
Options Indexes FollowSymLinks 

# 
# AllowOverride controls what directives may be placed in .htaccess files. 
# It can be "All", "None", or any combination of the keywords: 
# Options FileInfo AuthConfig Limit 
# 
AllowOverride all 

# 
# Controls who can get stuff from this server. 
# 

# onlineoffline tag - don't remove 
Order Deny,Allow 

Allow from ALL 

</Directory> 
相关问题