访问PC连接Android移动设备的localhost服务器

时间:2016-04-11 13:57:56

标签: android

我在我的设备中运行我的Android应用程序... 我需要从我的手机访问localhost服务器,为此我在我的手机浏览器中键入我的电脑IP地址,并确保我打开服务器,但它没有'与...合作 有人可以帮我扔这个

1 个答案:

答案 0 :(得分:0)

如果是,首先使用您的localhost使用端口号,然后使用与IP地址相同的端口号 例如localhost: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>
相关问题