我想在我的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(在同一网络中)
发布评论