从iPhone访问localhost(在同一网络中)

编程入门 行业动态 更新时间:2024-10-25 07:27:23
本文介绍了从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.

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

When I visit 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(在同一网络中)

本文发布于:2023-11-23 10:13:55,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1621073.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:在同一   网络   iPhone   localhost

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!