Connect Device to Mac localhost Server? [closed]
Want to improve this question? Update the question so it’s on-topic for Stack Overflow.
Closed 2 years ago .
How do I allow any device, e.g., iPhone, to connect over a WLAN to my Mac’s localhost server?
On my Mac, I’m running a «Hello World» HTTP Node.js server that serves a page, which Safari opens successfully, at http://localhost:1337 . And, running ipconfig getifaddr en1 in Terminal outputs 192.168.1.9 .
But, Safari, on both iPhone & Mac, displays «Safari can’t connect to the server» when it tries to open http://192.168.1.9:1337 .
I don’t think this should involve port forwarding because I only want the HTTP server to be available privately, not publicly.
14 Answers 14
I had the same problem. I turned off my WI-FI on my Mac and then turned it on again, which solved the problem. Click Settings > Turn WI-FI Off.
I tested it by going to Safari on my iPhone and entering my host name or IP address. For example: http:// .local or http://10.0.1.5
Have your server listen on 0.0.0.0 instead of localhost .
I was only able to access my iphone using http://name.local:1337 . You have to add the «.local» You can find your computer name under System Preferences/sharing/»Computer Name».
Try enabling Internet Sharing:
Open System Preferences -> Sharing. Check Internet Sharing to turn it on, it will prompt you to confirm your action, select ok. If your iPhone is connected using USB, the iPhone USB is checked at the «sharing your connection» list on the right side.
After this, try accessing your local server using your macs ip on wifi.
My problem was the same, but the solution had to do with changing a firewall setting. It turned out that node was set to block incoming traffic. I knew something was up because I used to be able to get to my localhost server from my phone.
Go to System Preferences -> Security & Privacy -> Firewall -> Firewall Options, and then scroll down until you find node and make sure node’s setting is set to Allow incoming connections.
After changing the setting, I could reach the localhost server (port 3000) running on my Mac by going to http://192.168.1.11:3000
I solve a similar problem.
- connected Mac and iPhone to the same Wi-Fi
- change the iPhone Wi-Fi setting, set http proxy to manual and change the Server to you Mac ip address and setting the Port. My Port is 80.
- you can input http:// : in iPhone’s safari
Источник
Question: Q: Verification failed : There was an error connecting to apple id server
After updating to iOS9 I can not sign into iCloud and restore my backup. Now I do not have access to anything on my iPad air. Any way to fix this?
iPad Air, iOS 9.0.1
Posted on Sep 24, 2015 9:01 PM
Helpful answers
I having the same issue on my iPhone 5c. I’m trying to restore from back up on iTunes, which I’ve heard resolves the issue, however in order to do so I need to disable Find My iPhone, which needs to be able to connect to the Apple ID server. So sort of stuck in an endless loop of not being able to sign in — any ideas?
Oct 14, 2015 7:21 AM
I have this same issue. Its frustrating because i know im entering the correct username and password as its al ways worked before. Not it doesn’t
Sep 25, 2015 6:16 AM
My sister had this issue and we figured it out together, it may work for you.
- In Settings go to your App & iTunes preferences (even if you’re just trying to use iCloud).
- Click on your Apple ID at the top.
- A popup will allow you to sign out, do that.
- Sign back in.
Let me know if this works for anybody else.
Sep 25, 2015 4:21 PM
I’m having the same problem and I tried restarting and it didn’t work I’ve tried signing out and back in and it didn’t work
Oct 6, 2015 10:09 AM
Worked perfectly, thank you! Also, this cleared up my iCloud was full problem. Was able to delete old backups. Plenty of space now!
Nov 1, 2015 12:58 PM
I have followed ALL the suggestions and still no go. When I try to log out of icloud or itunes, it gives me the pop -up. When I enter the password, the box «shakes» indicating the password is not valid. A geek friend told me to log on to my icloud acct on another computer to see if the password is still valid — I did and the password is still valid.
How can I log out of anything if the ipad is not recognizing my password.
This is beyond frustrating. 😠
Dec 6, 2015 10:23 AM
I had the same problem, and at one point realized that the update had turned off my network connections. When I turned wifi back on, I was able to sign in without issue.
Oct 9, 2015 5:20 PM
I got a 6s recently but i wanted my photos from my 5c back without the rest of the apps and stuff so I backed up my 6s to iTunes on my macbook and then wiped it so I could restore my 5c backup onto it. I got all the photos i wanted imported to my mac and went to reset my phone again so I could restore the 6s backup I just created but every time i try to enter my Apple ID password it comes up with the error connecting to Apple ID message?
I tried to reset it through iTunes on my mac but I need to turn off Find My iPhone which I can’t do without entering my ID password which keeps getting rejected?
I know the password works and it complies with the new password requirements?
Jan 8, 2016 8:47 AM
I had this same problem. None of the above suggestions worked. Finally figured out that one of my kids had changed the date and time in Settings. Changed it back, and problem solved!
Feb 11, 2016 10:20 PM
What symptoms are you seeing? Is it claiming that user or password is incorrect? If so, try restarting the phone — that’s resolved it for some people.
If that doesn’t help, I suggest calling Apple support. There are some odd issues between IOS9 and iCloud, not yet fully resolved.
As an alternative, although Apple doesn’t support it and we can’t discuss details here, if you Google downgrading to IOS8, restore your backup, then backup to iTunes and do the update to IOS9 through iTunes
Sep 25, 2015 6:29 AM
This is bull. With all of Apple’s money and resources, they can’t build an infrastructure and develop software that works? Android, here I come.
Nov 28, 2015 4:32 PM
This worked for me. Thanks! the iPhone 5s wouldn’t allow me to get my voicemail without signing in. Your trick worked
Dec 14, 2015 4:26 PM
OMG I tried for ages selling my soul to yet more frustrating ios software just to sign out of apple in the settings, after reading this reply I to realised after upgrading to the new update I had been signed out of wifi, as soon as I logged back in to my wifi I was finally able to sign out of my daughters apple account.
Many thanks for the tip.
Jeeeez something so simple, thank god I have a android 😉
Jan 2, 2016 3:23 AM
Thanx ended up turning phone of and on works perfect
Nov 27, 2015 7:33 AM
Same problem as you, none of the suggestions helped. I fixed by going to «manage your Apple ID» and changing my password, then entering the new password on the phone.
I think maybe Apple changed their requirements for passwords — as I was changing mine, it said I had to use both 1 uppercase letter and 1 number, neither of which my old password had.
So maybe that shift made my old password invalid on the new system even though it was still a correct password. Talk about a stupid oversight.
Jan 7, 2016 1:44 PM
If anyone gets the verification error on your phone all you have to do is log off the wifi and go login your iTunes then it should go away.
Jan 24, 2016 5:49 PM
I read through all the posts as I had a similar problem. It took a lot of steps to finally sort out the problem but I got there in the end!
Got error message: Verification error — cannot connect to Apple ID Server
I changed the Apple ID Password via my PC
Turned off the wifi, logged off from the router and logged back in again
Changed the date and time
Turned the wifi on and off again
Then I got a new error message: An unknown error occurred
I then reset my iPad (held the square button and start down) and to my amazement after trying each of the above steps finally it had worked!! Thank goodness for that! 🙂
Thanks to everyone who posted before me as using all the comments I got there in the end and hopefully this will help someone else before they rip their hair out!
May 2, 2016 3:00 AM
I resolved this after speaking to Apple Support. The following does not delete any data or media. It will remove things like background, screen lock pin and wifi authentication — you’ll need your WiFi password to hand before you do this.
1. Select Settings—> General —> Reset —> Reset All Settings
2. Confirm Reset All Settings
3. The phone will restart. Takes about 2 minutes.
4. Once restarted, go back inot Settings —> Wifi
5. Re-select your Network and enter your password
6. Re-try logging in to iTunes and/or iCloud with your username and password.
This worked for me. I hope it works for you.
Remember to re-add your screen lock password.
May 3, 2016 4:18 AM
i was on the phone for apple support for about 30 minutes and we figured out it was when i reset my phone it disconnected me from my wifi and i never bothered to reconnect it because i assumed it’d work the same on 3g (it doesnt)
Are you sure you’re connected to wifi? because when I reconnected and tried again it let me reset no problem!
Jan 24, 2016 2:38 PM
connect your iphone to your computer and itunes. hold down the power and home button together until you see an apple, the apple will dissapear, keep holding down until you see an itunes symbol and follow prompts on your computer to restore device
Feb 17, 2016 1:09 PM
The thing that I did that helped me was going to settings, general, scrolling all the way down to Reset, and hitting the very top reset all settings. I am on ios 9.3.1 and don’t know if it will work on other versions but it doesn’t hurt to try.
May 2, 2016 8:42 AM
There’s more to the conversation
Loading page content
Page content loaded
I have this same issue. Its frustrating because i know im entering the correct username and password as its al ways worked before. Not it doesn’t
Sep 25, 2015 6:16 AM
What symptoms are you seeing? Is it claiming that user or password is incorrect? If so, try restarting the phone — that’s resolved it for some people.
If that doesn’t help, I suggest calling Apple support. There are some odd issues between IOS9 and iCloud, not yet fully resolved.
As an alternative, although Apple doesn’t support it and we can’t discuss details here, if you Google downgrading to IOS8, restore your backup, then backup to iTunes and do the update to IOS9 through iTunes
Sep 25, 2015 6:29 AM
My sister had this issue and we figured it out together, it may work for you.
- In Settings go to your App & iTunes preferences (even if you’re just trying to use iCloud).
- Click on your Apple ID at the top.
- A popup will allow you to sign out, do that.
- Sign back in.
Let me know if this works for anybody else.
Sep 25, 2015 4:21 PM
I’m having the same problem and I tried restarting and it didn’t work I’ve tried signing out and back in and it didn’t work
Oct 6, 2015 10:09 AM
I had the same problem, and at one point realized that the update had turned off my network connections. When I turned wifi back on, I was able to sign in without issue.
Oct 9, 2015 5:20 PM
I having the same issue on my iPhone 5c. I’m trying to restore from back up on iTunes, which I’ve heard resolves the issue, however in order to do so I need to disable Find My iPhone, which needs to be able to connect to the Apple ID server. So sort of stuck in an endless loop of not being able to sign in — any ideas?
Oct 14, 2015 7:21 AM
Worked perfectly, thank you! Also, this cleared up my iCloud was full problem. Was able to delete old backups. Plenty of space now!
Nov 1, 2015 12:58 PM
Thanx ended up turning phone of and on works perfect
Nov 27, 2015 7:33 AM
This is bull. With all of Apple’s money and resources, they can’t build an infrastructure and develop software that works? Android, here I come.
Nov 28, 2015 4:32 PM
I have followed ALL the suggestions and still no go. When I try to log out of icloud or itunes, it gives me the pop -up. When I enter the password, the box «shakes» indicating the password is not valid. A geek friend told me to log on to my icloud acct on another computer to see if the password is still valid — I did and the password is still valid.
How can I log out of anything if the ipad is not recognizing my password.
This is beyond frustrating. 😠
Dec 6, 2015 10:23 AM
This worked for me. Thanks! the iPhone 5s wouldn’t allow me to get my voicemail without signing in. Your trick worked
Dec 14, 2015 4:26 PM
OMG I tried for ages selling my soul to yet more frustrating ios software just to sign out of apple in the settings, after reading this reply I to realised after upgrading to the new update I had been signed out of wifi, as soon as I logged back in to my wifi I was finally able to sign out of my daughters apple account.
Many thanks for the tip.
Jeeeez something so simple, thank god I have a android 😉
Jan 2, 2016 3:23 AM
Same problem as you, none of the suggestions helped. I fixed by going to «manage your Apple ID» and changing my password, then entering the new password on the phone.
I think maybe Apple changed their requirements for passwords — as I was changing mine, it said I had to use both 1 uppercase letter and 1 number, neither of which my old password had.
So maybe that shift made my old password invalid on the new system even though it was still a correct password. Talk about a stupid oversight.
Jan 7, 2016 1:44 PM
I got a 6s recently but i wanted my photos from my 5c back without the rest of the apps and stuff so I backed up my 6s to iTunes on my macbook and then wiped it so I could restore my 5c backup onto it. I got all the photos i wanted imported to my mac and went to reset my phone again so I could restore the 6s backup I just created but every time i try to enter my Apple ID password it comes up with the error connecting to Apple ID message?
I tried to reset it through iTunes on my mac but I need to turn off Find My iPhone which I can’t do without entering my ID password which keeps getting rejected?
I know the password works and it complies with the new password requirements?
Jan 8, 2016 8:47 AM
Hi, OK, like many hours later. what I found worked for me was that I had to log into Manage my Apple ID on my computer and I had to change my Apple ID password. My password was old and was not not meeting recommendations for strength. Once I changed it, I was able to log in. It had to be updated on all our other devices as well, but problem solved!!
Jan 23, 2016 10:12 AM
Question: Q: Verification failed : There was an error connecting to apple id server More Less
Источник