open your terminal and enter the following command.
sudo nano /private/etc/hosts
press enter. then it will ask for your password for Mac. After entering the password.
GNU nano 2.0.6 File: / private / etc / hosts
## # Host database # # localhost is used to configure the loopback # interface when the system boots. Do not modify this entry. ##
127.0.0.1 localhost
255.255.255.255 broadcasthost
:: 1 localhost
fe80 :: 1% lo0 localhost
When you have made the changes, press Control-X to exit the editor, Y to save,
source share