从手机接入本地主机 [英] access localhost from mobile phone

查看:132
本文介绍了从手机接入本地主机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在一个手机网站的工作使用jQuery移动,并想用我的Andr​​oid手机浏览器进行测试。

I am working on a Mobile website using jquery mobile and would like to test it using my android Phone browser.

我的Windows 7计算机和android手机是相同的无线网络上。

My Windows 7 machine and android phone are on the same wireless network.

我通常从我的计算机访问移动网站:的http://localhost/index.php/doctor

I normally access the mobile site from my machine: "http://localhost/index.php/doctor"

我试图访​​问它使用从我的移动无线网络的IP地址: http://192.168.1.3/index.php/doctor

I tried accessing it using the wireless network IP address from my mobile: "http://192.168.1.3/index.php/doctor"

不过,我得到找不到网页错误。

but, I get web page not available error.

我如何从我的Andr​​oid手机访问本地主机?!

How do I access localhost from my android phone?!

推荐答案

192.168.1.3是本地网络地址。你需要做的,就是让外部IP地址,并将它放入手机网址。您可以通过进入命令行并键入 IPCONFIG ,这应该给你所有你的机器的IP地址,随着外部IP为您的本地网络服务器做到这一点。我怀疑这有什么用你的防火墙。更可能的,你只需要找到你的本地网络服务器的正确IP地址。

192.168.1.3 is the local network address. What you need to do, is get the external IP address, and put that into the phones URL. You can do this by going into the command line and typing ipconfig, this should give you all your machines IP addresses, along with the external IP for your local webserver. I doubt this has anything to do with your firewall. More than likely, you just need to find the correct IP address for your local webserver.

希望这有助于。

这篇关于从手机接入本地主机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆