iPhone无法通过WiFi连接到本地HTTP服务器 [英] iPhone can not connect to local HTTP server over WiFi

查看:718
本文介绍了iPhone无法通过WiFi连接到本地HTTP服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法打开在iPhone 6s iOS 9.2中在我的MacBook上运行的HTTP服务器提供的静态HTML页面,在Safari和Chrome浏览器中都不能使用: http:// ipNumberOfMyServer :portNumber

I can not open static HTML pages served from a HTTP server run on my MacBook in iPhone 6s iOS 9.2, neither in 'Safari' nor in 'Chrome' browser when using: http://ipNumberOfMyServer:portNumber

我可以在Android手机上打开页面,如果我关闭MacBook的WiFi,我也可以打开页面然后,如果我更改页面并刷新浏览器,它再次无法加载页面并说服务器已停止响应或Safari无法连接到服务器。

I am able to open the pages on Android phones and I'm also able to open the pages if I turn MacBook's WiFi off and on, but if I change the page and refresh the browser, it again fails to load the page and says that server has stopped responding or that Safari could not connect to the server.

重置iPhone中的网络设置没有帮助,也没有在iPhone设置中关闭蜂窝数据。知道什么是错的吗?

Resetting network settings in iPhone didn't help, nor did turning off Cellular Data in iPhone settings. Any idea what's wrong?

推荐答案

我知道这已经老了。您可以从系统偏好设置 - >共享

I know this is old already. You can get you computer name from System Preferences -> Sharing

系统偏好设置 - >共享

,输入 http://JimbasMekbuk.local
如果您使用不同的端口,比如3000,那么添加:3000
确保关闭防火墙

in your iPhone safari, type http://JimbasMekbuk.local if you using different port, say 3000, then add :3000 make sure you turn off firewall

我希望这会有所帮助: - )

I hope this will help :-)

这篇关于iPhone无法通过WiFi连接到本地HTTP服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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