Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Can't ping 127.0.0.1

First of all, my stealth mode is disabled.

In my terminal, I can't ping 127.0.0.1 (or localhost) and ip address.


However, the browser can resolve with 127.0.0.1 or localhost, and it display "It works!", but the browser can't resolve the local ip address.

Also, when I go to safe mode in my mac, everything is working fine. I can ping 127.0.0.1, localhost and my ip address no problem at all.

In my terminal, when I "ping6 ::1" it was working fine.


My lo0 interface look like this:

lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384

options=3<RXCSUM,TXCSUM>

inet6 ::1 prefixlen 128

inet 127.0.0.1 netmask 0xff000000

inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1

nd6 options=1<PERFORMNUD>


I'd like to know what is going on for my computer. Any help is great.


Thank you,

Raymond

Posted on Nov 22, 2015 10:19 PM

Reply
9 replies

Nov 22, 2015 11:04 PM in response to davidsignal

My host file is

##

# 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


And I did "dscacheutil -flushcache; sudo killall -HUP mDNSResponder" to flush my DNS cache, it's still not working for me.

Nov 23, 2015 5:15 AM in response to daihua

Also, when I go to safe mode in my mac, everything is working fine. I can ping 127.0.0.1, localhost and my ip address no problem at all.

What 3rd party additions have you installed. Because Safe mode does not load them. This is a good indication you have software installed that is checking your network operations, such as an Anti-virus, or LittleSnitch, etc...


EtreCheck will display all the 3rd party additions. If you post the output, someone will offer suggestions on what should be uninstalled, or it will show us nothing, and we will then scratch our heads some more 🙂

<https://discussions.apple.com/docs/DOC-6174>


NOTE: The frequent forum contributors do not recommend any Anti-virus, Mac cleaners, or memory cleaner products, as they have been found to cause far more trouble then they are worth.

Nov 23, 2015 6:26 AM in response to daihua

[Updated] I reread your post after suggesting the disable of stealth mode, so have removed my response.


Have you made any changes, or additions to your /etc/hosts file, or DNS search order? Your ifconfig results for lo0 are identical to mine. My /etc/hosts remains unchanged. I can correctly ping localhost with stealth mode off, but not with stealth mode on.


Does dig localhost return normally?

Nov 23, 2015 10:13 AM in response to VikingOSX

Here is my dig localhost:


; <<>> DiG 9.8.3-P1 <<>> localhost

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 33640

;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1



;; QUESTION SECTION:

;localhost. IN A



;; ANSWER SECTION:

localhost. 86400 IN A 127.0.0.1



;; AUTHORITY SECTION:

localhost. 86400 IN NS localhost.



;; ADDITIONAL SECTION:

localhost. 86400 IN AAAA ::1



;; Query time: 28 msec

;; SERVER: 10.33.4.1#53(10.33.4.1)

;; WHEN: Mon Nov 23 10:11:33 2015

;; MSG SIZE rcvd: 85


Not sure am I having the normal output.

Nov 23, 2015 10:28 AM in response to BobHarris

Here is my EtreCheck Report:

EtreCheck version: 2.6.4 (224)

Report generated 11/23/15, 10:25 AM

Runtime 1:31

Download EtreCheck from http://etresoft.com/etrecheck


Click the [Click for support] links for help with non-Apple products.

Click the [Click for details] links for more information about that line.


Hardware Information: (What does this mean?)

MacBook Pro (Retina, 15-inch, Late 2013)

[Click for Technical Specifications]

[Click for User Guide]

MacBook Pro - model: MacBookPro11,3

1 2.3 GHz Intel Core i7 CPU: 4-core

16 GB RAM Not upgradeable

BANK 0/DIMM0

8 GB DDR3 1600 MHz ok

BANK 1/DIMM0

8 GB DDR3 1600 MHz ok

Bluetooth: Good - Handoff/Airdrop2 supported

Wireless: en0: 802.11 a/b/g/n/ac

Battery: Health = Normal - Cycle count = 304 - SN = C01352304XJF9CRAA


Video Information: (What does this mean?)

Intel Iris Pro

NVIDIA GeForce GT 750M - VRAM: 2048 MB

Color LCD 3360 x 2100

DELL P2414H 1920 x 1080 @ 60 Hz


System Software: (What does this mean?)

OS X El Capitan 10.11.1 (15B42) - Time since boot: less than an hour


Disk Information: (What does this mean?)

APPLE SSD SM0512F disk0 : (500.28 GB) (Solid State - TRIM: Yes)

EFI (disk0s1) <not mounted> : 210 MB

Recovery HD (disk0s3) <not mounted> [Recovery]: 650 MB

Macintosh HD (disk1) / : 499.05 GB (202.02 GB free)

Encrypted AES-XTS Unlocked

Core Storage: disk0s2 499.42 GB Online


USB Information: (What does this mean?)

Apple Card Reader

Apple Inc. Apple Internal Keyboard / Trackpad

Apple Inc. BRCM20702 Hub

Apple Inc. Bluetooth USB Host Controller

Kingsis Peripherals Evoluent VerticalMouse 4


Thunderbolt Information: (What does this mean?)

Apple Inc. thunderbolt_bus

Apple Inc. Thunderbolt to Gigabit Ethernet Adapter


Configuration files: (What does this mean?)

/etc/sudoers, File size 633 but expected 2299


Gatekeeper: (What does this mean?)

Anywhere


Kernel Extensions: (What does this mean?)

/Applications/VMware Fusion.app

[not loaded] com.vmware.kext.vmci (90.6.3) [Click for support]

[not loaded] com.vmware.kext.vmioplug.14.1.3 (14.1.3) [Click for support]

[not loaded] com.vmware.kext.vmnet (0231.47.74) [Click for support]

[not loaded] com.vmware.kext.vmx86 (0231.47.74) [Click for support]

[not loaded] com.vmware.kext.vsockets (90.6.0) [Click for support]


/Library/Application Support/VirtualBox

[loaded] org.virtualbox.kext.VBoxDrv (5.0.6) [Click for support]

[loaded] org.virtualbox.kext.VBoxNetAdp (5.0.6) [Click for support]

[loaded] org.virtualbox.kext.VBoxNetFlt (5.0.6) [Click for support]

[loaded] org.virtualbox.kext.VBoxUSB (5.0.6) [Click for support]


Launch Agents: (What does this mean?)

[failed] com.qvod.agent.plist.svn-base [Click for support]

[loaded] com.adobe.AAM.Updater-1.0.plist [Click for support]

[failed] com.adobe.ARMDCHelper.cc24aef4a1b90ed56a...plist [Click for support]

[running] com.adobe.AdobeCreativeCloud.plist [Click for support]

[running] com.fujitsu.pfu.ScanSnap.AOUMonitor.plist [Click for support]

[loaded] com.google.keystone.agent.plist [Click for support]

[running] com.mcafee.menulet.plist [Click for support]

[running] com.mcafee.reporter.plist [Click for support]

[loaded] com.oracle.java.Java-Updater.plist [Click for support]

[loaded] com.parallels.mobile.prl_deskctl_agent.launchagent.plist [Click for support]

[failed] com.qvod.agent.plist [Click for support] [Click for details]

[running] com.sogou.SogouServices.plist [Click for support]

[loaded] com.teamviewer.teamviewer.plist [Click for support]

[loaded] com.teamviewer.teamviewer_desktop.plist [Click for support]

[running] net.juniper.pulsetray.plist [Click for support]


Launch Daemons: (What does this mean?)

[loaded] com.adobe.ARMDC.Communicator.plist [Click for support]

[loaded] com.adobe.ARMDC.SMJobBlessHelper.plist [Click for support]

[loaded] com.adobe.SwitchBoard.plist [Click for support]

[running] com.adobe.adobeupdatedaemon.plist [Click for support]

[loaded] com.adobe.agsservice.plist [Click for support]

[loaded] com.adobe.fpsaud.plist [Click for support]

[loaded] com.atlassian.SourceTreePrivilegedHelper2.plist [Click for support]

[loaded] com.barebones.authd.plist [Click for support]

[loaded] com.google.keystone.daemon.plist [Click for support]

[running] com.mcafee.agent.cma.plist [Click for support]

[loaded] com.microsoft.autoupdate.helpertool.plist [Click for support]

[loaded] com.microsoft.office.licensing.helper.plist [Click for support]

[loaded] com.microsoft.office.licensingV2.helper.plist [Click for support]

[loaded] com.oracle.java.Helper-Tool.plist [Click for support]

[loaded] com.oracle.java.JavaUpdateHelper.plist [Click for support]

[failed] com.parallels.mobile.dispatcher.launchdaemon.plist [Click for support]

[failed] com.parallels.mobile.kextloader.launchdaemon.plist [Click for support]

[loaded] com.screenhero.SHAccessibilityHelper.plist [Click for support]

[loaded] com.teamviewer.Helper.plist [Click for support]

[loaded] com.teamviewer.teamviewer_service.plist [Click for support]

[running] com.zeobit.MacKeeper.plugin.AntiTheft.daemon.plist [Click for support]

[running] net.juniper.AccessService.plist [Click for support]

[loaded] net.juniper.UninstallPulse.plist [Click for support]

[loaded] net.sourceforge.MonolingualHelper.plist [Click for support]

[loaded] org.virtualbox.startup.plist [Click for support]


User Launch Agents: (What does this mean?)

[failed] com.adobe.ARM.[...].plist [Click for support] [Click for details]

[failed] com.parallels.mobile.startgui.launchagent.plist [Click for support] [Click for details]

[running] com.zeobit.MacKeeper.Helper.plist [Click for support]

[running] homebrew.mxcl.mongodb.plist [Click for support]

[failed] homebrew.mxcl.postgresql.plist [Click for support]

[loaded] org.virtualbox.vboxwebsrv.plist [Click for support]


User Login Items: (What does this mean?)

iTunesHelper Application (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)

Dropbox Application (/Applications/Dropbox.app)

RoboFormIcon Application (~/Library/Application Support/RoboForm/RoboFormIcon.app)


Other Apps: (What does this mean?)

[running] com.SiberSystems.RoboFormIcon.95072

[running] com.adobe.acc.AdobeDesktopService.119072.89D41F97-A025-48E7-AA35-BA4DB682AF01

[running] com.adobe.accmac.81952

[running] com.etresoft.EtreCheck.227872

[running] com.getdropbox.dropbox.49312

[running] com.mcafee.ssm.Eupdate

[running] com.mcafee.ssm.ScanManager

[running] com.mcafee.virusscan.fmpd

[running] com.mcafee.virusscan.ssm.ScanFactory

[running] com.parallels.inputmethod.ParallelsIM.92512


Internet Plug-ins: (What does this mean?)

JavaAppletPlugin: Version: Java 8 Update 45 Check version

o1dbrowserplugin: Version: 5.41.0.0 - SDK 10.8 [Click for support]

QvodPlayerPlugin: Version: 1.0 - SDK 10.8 [Click for support]

Default Browser: Version: 601 - SDK 10.11

AdobeAAMDetect: Version: 3.0.0.0 - SDK 10.9 [Click for support]

FlashPlayer-10.6: Version: 19.0.0.245 - SDK 10.6 [Click for support]

AdobePDFViewerNPAPI: Version: 15.009.20077 - SDK 10.8 [Click for support]

Silverlight: Version: 5.1.30214.0 - SDK 10.6 [Click for support]

QuickTime Plugin: Version: 7.7.3

Flash Player: Version: 19.0.0.245 - SDK 10.6 [Click for support]

googletalkbrowserplugin: Version: 5.41.0.0 - SDK 10.8 [Click for support]

SharePointBrowserPlugin: Version: 14.5.8 - SDK 10.6 [Click for support]

AdobePDFViewer: Version: 15.009.20077 - SDK 10.8 [Click for support]

PanasonicDrmPlugin_1_1: Version: 1.3.1.1 - SDK 10.6 [Click for support]

QvodBrowserPlugin: Version: 1.0 - SDK 10.8 [Click for support]

MeetingJoinPlugin: Version: Unknown - SDK 10.2 [Click for support]


User internet Plug-ins: (What does this mean?)

WebEx64: Version: 1.0 - SDK 10.6 [Click for support]

Google Earth Web Plug-in: Version: 7.1 [Click for support]


Safari Extensions: (What does this mean?)

ResponsiveResize

RoboForm


3rd Party Preference Panes: (What does this mean?)

Flash Player [Click for support]

Java [Click for support]


Time Machine: (What does this mean?)

Skip System Files: NO

Mobile backups: OFF

Auto backup: YES

Volumes being backed up:

Macintosh HD: Disk size: 499.05 GB Disk used: 297.04 GB

Destinations:

Seagate Backup Plus Drive [Local]

Total size: 2.00 TB

Total number of backups: 0

Oldest backup: -

Last backup: -

Size of backup disk: Excellent

Backup size 2.00 TB > (Disk size 499.05 GB X 3)


Top Processes by CPU: (What does this mean?)

101% Dropbox

12% garcon

11% AdobeGCClient

5% WindowServer

4% Adobe CEF Helper(2)


Top Processes by Memory: (What does this mean?)

943 MB kernel_task

279 MB ocspd

246 MB mds_stores

229 MB mdworker(14)

131 MB VShieldScanner(4)


Virtual Memory Information: (What does this mean?)

9.71 GB Free RAM

6.28 GB Used RAM (5.10 GB Cached)

0 B Swap Used


Diagnostics Information: (What does this mean?)

Nov 23, 2015, 10:23:11 AM Self test - passed

Nov 21, 2015, 09:56:07 AM ~/Library/Logs/DiagnosticReports/node_2015-11-21-095607_[redacted].crash

Nov 20, 2015, 03:19:26 PM ~/Library/Logs/DiagnosticReports/Microsoft Remote Desktop_2015-11-20-151926_[redacted].crash



Hope it can find something useful.


Nov 23, 2015 1:32 PM in response to daihua

1. This procedure is a diagnostic test. It changes nothing, for better or worse, and therefore will not, in itself, solve the problem. But with the aid of the test results, the solution may take a few minutes, instead of hours or days.

The test works on OS X 10.7 ("Lion") and later. I don't recommend running it on older versions of OS X. It will do no harm, but it won't do much good either.

Don't be put off by the complexity of these instructions. The process is much less complicated than the description. You do harder tasks with the computer all the time.

2. If you don't already have a current backup, back up all data before doing anything else. The backup is necessary on general principle, not because of anything in the test procedure. Backup is always a must, and when you're having any kind of trouble with the computer, you may be at higher than usual risk of losing data, whether you follow these instructions or not.

There are ways to back up a computer that isn't fully functional. Ask if you need guidance.

3. Below are instructions to run a UNIX shell script, a type of program. As I wrote above, it changes nothing. It doesn't send or receive any data on the network. All it does is to generate a human-readable report on the state of the computer. That report goes nowhere unless you choose to share it. If you prefer, you can act on it yourself without disclosing the contents to me or anyone else.

You should be wondering whether you can believe me, and whether it's safe to run a program at the behest of a stranger. In general, no, it's not safe and I don't encourage it.

In this case, however, there are ways for you to decide whether the program is safe without having to trust me. First, you can read it. Unlike an application that you download and click to run, it's transparent, so anyone with the requisite skill can verify what it does.

You may not be able to understand the script yourself. But variations of it have been posted on this website thousands of times over a period of years. The site is hosted by Apple, which does not allow it to be used to distribute harmful software. Any one of the millions of registered users could have read the script and raised the alarm if it was harmful. Then I would not be here now and you would not be reading this message. See, for example, this discussion.

Another indication that the test is safe can be found in this thread, and this one, for example, where the comment in which I suggested it was recommended by one of the Apple Community Specialists, as explained here.

Nevertheless, if you can't satisfy yourself that these instructions are safe, don't follow them. Ask for other options.

4. Here's a general summary of what you need to do, if you choose to proceed:

☞ Copy a particular line of text to the Clipboard.

☞ Paste into the window of another application.

☞ Wait for the test to run. It usually takes a few minutes.

☞ Paste the results, which will have been copied automatically, back into a reply on this page.

These are not specific instructions; just an overview. The details are in parts 7 and 8 of this comment. The sequence is: copy, paste, wait, paste again. You don't need to copy a second time.

5. Try to test under conditions that reproduce the problem, as far as possible. For example, if the computer is intermittently slow, run the test during a slowdown.

You may have started up in safe mode. If the system is now in safe mode and works well enough in normal mode to run the test, restart as usual before running it. If you can only test in safe mode, do that.

6. If you have more than one user, and only one user is affected by the problem,, and the affected user is not an administrator, then please run the test twice: once while logged in as the affected user, and once as an administrator. The results may be different. The user that is created automatically on a new computer when you start it for the first time is an administrator. If you can't log in as an administrator, test as the affected user. Most personal Macs have only one user, and in that case this section doesn’t apply. Don't log in as root.

7. Load this linked web page (on the website "Pastebin.") The title of the page is "Diagnostic Test." Below the title is a text box headed by three small icons. The one on the right represents a clipboard. Click that icon to select the text, then copy it to the Clipboard on your computer by pressing the key combination command-C.

If the text doesn't highlight when you click the icon, select it by triple-clicking anywhere inside the box. Don't select the whole page, just the text in the box.

8. Launch the built-in Terminal application in any of the following ways:

☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)

☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.

☞ Open LaunchPad and start typing the name.

Click anywhere in the Terminal window to activate it. Paste from the Clipboard into the window by pressing command-V, then press return. The text you pasted should vanish immediately.

9. If you see an error message in the Terminal window such as "Syntax error" or "Event not found," enter

exec bash

and press return. Then paste the script again.

10. If you're logged in as an administrator, you'll be prompted for your login password. Nothing will be displayed when you type it. You will not see the usual dots in place of typed characters. Make sure caps lock is off. Type carefully and then press return. You may get a one-time warning to be careful. If you make three failed attempts to enter the password, the test will run anyway, but it will produce less information. If you don't know the password, or if you prefer not to enter it, just press return three times at the password prompt. Again, the script will still run.

If the test is taking much longer than usual to run because the computer is very slow, you might be prompted for your password a second time. The authorization that you grant by entering it expires automatically after five minutes.

If you're not logged in as an administrator, you won't be prompted for a password. The test will still run. It just won't do anything that requires administrator privileges.

11. The test may take a few minutes to run, depending on how many files you have and the speed of the computer. A computer that's abnormally slow may take longer to run the test. While it's running, a series of lines will appear in the Terminal window like this:

[Process started]

Part 1 of 4 done at … sec

Part 4 of 4 done at … sec

The test results are on the Clipboard.

Please close this window.

[Process completed]

The intervals between parts won't be exactly equal, but they give a rough indication of progress.

Wait for the final message "Process completed" to appear. If you don't see it within about 15 minutes, the test probably won't complete in a reasonable time. In that case, press the key combination control-C or command-period to stop it. Then go to the next step. You'll have incomplete results, but still something. If you close the Terminal window while the test is still running, the partial results won't be saved and you'll have to start over.

12. When the test is complete, or if you stopped it because it was taking too long, quit Terminal. The results will have been saved to the Clipboard automatically. They are not shown in the Terminal window. Please don't copy anything from there. All you have to do is start a reply to this comment and then paste by pressing command-V again.

At the top of the results, there will be a line that begins with the words "Start time." If you don't see that, but instead see a mass of gibberish, you didn't wait for the "Process completed" message to appear in the Terminal window. Please wait for it and try again.

If any private information, such as your name or email address, appears in the results, anonymize it before posting. Usually that won't be necessary.

13. When you post the results, you might see an error message on the web page: "You have included content in your post that is not permitted," or "The message contains invalid characters." That's a bug in the software that runs this website. Please post the test results on Pastebin, then post a link here to the page you created.

14. This is a public forum, and others may give you advice based on the results of the test. They speak for themselves, not for me. The test itself is harmless, but whatever else you're told to do may not be. For others who choose to run it, I don't recommend that you post the test results on this website unless I asked you to.

______________________________________________________________

Copyright © 2014, 2015 by Linc Davis. As the sole author of this work (including the referenced "Diagnostic Test"), I reserve all rights to it except as provided in the Use Agreement for the Apple Support Communities website ("ASC"). Readers of ASC may copy it for their own personal use. Neither the whole nor any part may be redistributed.

Nov 23, 2015 3:57 PM in response to daihua

[running] com.mcafee.menulet.plist [Click for support]

[running] com.mcafee.reporter.plist [Click for support]

[running] com.mcafee.agent.cma.plist [Click for support]


[running] com.mcafee.ssm.Eupdate

[running] com.mcafee.ssm.ScanManager

[running] com.mcafee.virusscan.fmpd

[running] com.mcafee.virusscan.ssm.ScanFactory


[running] com.zeobit.MacKeeper.plugin.AntiTheft.daemon.plist [Click for support]

[running] com.zeobit.MacKeeper.Helper.plist [Click for support]


[running] net.juniper.AccessService.plist [Click for support]

[loaded] net.juniper.UninstallPulse.plist [Click for support]

One of the above is my guess.


McAfee may be providing a firewall that is blocking the ping. And the regular forum contributors do not like any 3rd party Anti-Virus

How does Mac OS X protect me?

<http://www.thesafemac.com/mmg-builtin/>


MacKeeper, not sure if it the cause, but it has been on Santa's "Bad" list for a long time. Suggest removing it just on principle.


Juniper, I know is network related, is it possible it is establishing a VPN service?

Can't ping 127.0.0.1

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