ping localhost gets timed out

Hi,

I am having a bizarre issue with my mac, current version OS X yosemite 10.10.5. I am trying to ping localhost or 127.0.0.1 and getting request timed out. the firewall is turned off.

VKxxx-Mac:~ VKxxx$ ping localhost

PING localhost (127.0.0.1): 56 data bytes

Request timeout for icmp_seq 0

Request timeout for icmp_seq 1

Request timeout for icmp_seq 2

Request timeout for icmp_seq 3

^C

/etc/hosts file seems normal too

VKxxx-Mac:~ VKxxx$ cat /etc/hosts

##

# Host Database

#

# localhost is used to configure the loopback interface

# when the system is booting. Do not change this entry.

##

127.0.0.1 localhost

255.255.255.255 broadcasthost

::1 localhost

Also, the response of file -b /etc/hosts seems as expected

VKxxx-Mac:~ VKxxx$ file -b /etc/hosts

ASCII English text

Please if anyone have encountered similar issue, help me to resolve it.

Thanks

MacBook Pro with Retina display, OS X Yosemite (10.10.5)

Posted on Dec 8, 2015 11:20 AM

Reply
7 replies

Dec 8, 2015 11:49 AM in response to vaibhavfromsouthfield

I just tried that and got 10 pings in about 5 seconds. Have you tried restarting the router or re interning your network configurations. Depending on the time of day and volume on the network your trying to access you could get time outs, I get this using google search sometimes. If if happens all the time that is another matter. Your network provider might be a source of help with this. Is it only on that IP that it happens/

Dec 8, 2015 2:14 PM in response to vaibhavfromsouthfield

Please read this whole message before doing anything.

This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.

The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, by a font conflict, or by corruption of the file system or of certain system caches.

Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards, if applicable. Start up in safe mode and log in to the account with the problem.

Note: If FileVault is enabled in OS X 10.9 or earlier, or if a firmware password is set, or if the startup volume is a software RAID, you can’t do this. Ask for further instructions.

Safe mode is much slower to start up and run than normal, with limited graphics performance, and some things won’t work at all, including sound output and Wi-Fi on certain models. The next normal startup may also be somewhat slow.

The login screen appears even if you usually login automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin.

Test while in safe mode. Same problem?

After testing, restart as usual (not in safe mode) and verify that you still have the problem. Post the results of the test.

Dec 8, 2015 12:16 PM in response to my ginger

my ginger wrote:


I just tried that and got 10 pings in about 5 seconds. Have you tried restarting the router or re interning your network configurations. Depending on the time of day and volume on the network your trying to access you could get time outs, I get this using google search sometimes. If if happens all the time that is another matter. Your network provider might be a source of help with this. Is it only on that IP that it happens/

He is trying to ping his computer from his computer. His issue has nothing to do with the network, his provider, or the time of day.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

ping localhost gets timed out

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.