- Launch Terminal , found in /Applications/Utilities/ or launched through Spotlight
- Type the following command at the prompt:
sudo nano /private/etc/hosts
- Enter the administrator password when requested, you will not see it typed on screen as usual with the command line
- Once the hosts file is loaded within nano, use the arrow keys to navigate to the bottom of the hosts file to make your modifications
- When finished, hit Control+O followed by ENTER/RETURN to save changes to /private/etc/hosts, then hit Control+X to exit out of nano
- Quit out of Terminal when finished
Editing the hosts file can resolve sign in issues with Facetime Messages and Game Center.
No. That support document says exactly the opposite - that editing the hosts file can cause sign in issues with Facetime Messages and Game Center.
My issue got sorted out by editing the hosts file. There are applications (for example SAP Enterprise Portal) requires you to modify your hosts file without that it will not work.
** By the way it is safer to edit if we know why and what are we editing **
From Apple notes:
If you have edited your /private/etc/hosts file, you should remove or comment out any entries containing apple.com or verisign.com. To comment them out, put a "#" character (without quotes) and a space at the start of any line containing apple.com or verisign.com. Note: Some third-party software installers may modify the hosts file without alerting you.
It's pretty easy once you know the BIG secret.
1.- Open Finder
2.- Press Shift + Cmd + G
3.- Type /etc
5.- Right click hosts
6.- Open with > TextWrangler
<Edited By Host>
The newest version of TextWrangler has a "Show hidden items" on the Open dialog. So, you can then get to anywhere in the file system. It used to have an Open Hidden command, so if you have an older version, you can use that to open the file directly.