2016-04-11 107 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> 
相關問題