从iPhone访问localhost(在同一网络中) [英] Accessing localhost from iPhone (in same network)

查看:321
本文介绍了从iPhone访问localhost(在同一网络中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我的iPhone中测试在localhost(XAMPP)中开发的iPhone Web应用程序。我的系统IP在本地网络中是192.168.1.1。

I want to test my iPhone web Application developed in localhost (XAMPP) in my iPhone. My system IP is 192.168.1.1 in the local network.

当我访问 http://192.168.1.1:80 在浏览器中,它显示DSL路由器上的服务器192.168.1.1:80需要用户名和密码。

When I visit http://192.168.1.1:80 in the browser, it says "The server 192.168.1.1:80 at DSL Router requires a username and password".

我认为它必须是我的XAMPP用户名/密码,但它似乎不是,它显示404错误。

I thought it must be my XAMPP username/password but it seems it is not and it shows a 404 error.

我的系统和我的iPhone都在同一个网络中。那么我在哪里做错了?

Both my system and my iPhone are in the same network. So where am I doing it wrong?

推荐答案

检查以确保您的IP对于您的主机是正确的。

Check to make sure your IP is correct for your host machine.

Windows: Windows + R - > 输入 cmd

Windows: Windows + R -> type "cmd"

ipconfig

* unix:

ifconfig

通常会为您的路由器分配192.168.0.1或192.168.1.1,这是您通过iPhone看到的。

Usually 192.168.0.1 or 192.168.1.1 are allocated to your router, which is what you are seeing via your iPhone.

这篇关于从iPhone访问localhost(在同一网络中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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