iPhone can not connect to local HTTP server over WiFi

泪湿孤枕 提交于 2019-12-06 11:50:51

问题


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

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.

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


回答1:


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

System Preferences->Sharing

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 :-)




回答2:


I had a similar problem, I changed the Wi-Fi network from 5GHz to 2.4GHz and this fixed it.



来源:https://stackoverflow.com/questions/35506110/iphone-can-not-connect-to-local-http-server-over-wifi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!