smohadjer
smohadjer

Reputation: 882

iPhone can not connect to local HTTP server over WiFi

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?

Upvotes: 3

Views: 8159

Answers (2)

treebeard
treebeard

Reputation: 31

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

Upvotes: 3

jimbas
jimbas

Reputation: 41

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

Upvotes: 4

Related Questions