Can’t access localhost files

Firefox version 48.0.2

OS 10.6.8

Early 2008 Mac Pro

MacPro3,1

64-Bit Intel

SMC Version (system): 1.25f4

Proxies: 

Exceptions List: *.local, 169.2xx/xx

FTP Passive Mode: Yes

ATT|Uverse WiFi


I am suddenly not able to access my personal website files on my Mac Pro using localhost. The browser says to try loading the page again. When I do this, an ATT|Uverse page appears saying that the problem has been resolved and to close the browser and try again. Same result.


I have have never had this happen before.


Is is this a Mac Pro computer problem? A browser problem? Or an ATT|Uverse router problem?


Any suggestions appreciated.

Posted on Jan 26, 2020 6:03 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 29, 2020 11:08 AM

Actually I think it does. I contacted ATT|Uverse and it turns out my router which connects all my devices to WiFi and the internet has been “retired” unbeknownst to me until now. This means firmware updates weren’t being made to the router. They are sending me a new router, which I have to connect in place of the old one. The support guy thinks this is the reason why my desktop localhost webserver is not available. I will report back when the change is made. Fingers crossed.

Similar questions

52 replies
Question marked as Top-ranking reply

Jan 29, 2020 11:08 AM in response to MrHoffman

Actually I think it does. I contacted ATT|Uverse and it turns out my router which connects all my devices to WiFi and the internet has been “retired” unbeknownst to me until now. This means firmware updates weren’t being made to the router. They are sending me a new router, which I have to connect in place of the old one. The support guy thinks this is the reason why my desktop localhost webserver is not available. I will report back when the change is made. Fingers crossed.

Jan 26, 2020 6:09 PM in response to Shelley Schreiber

An ancient OS version, a Mac Pro that tops out at El Capitan OS X 10.11, and a known-to-be-weird AT&T U-verse network.


Disconnect from the Wi-Fi, maybe connect to a network switch with no other links, and see if localhost works. Eliminate the U-verse networking from the configuration.


Also confirm that /etc/hosts isn’t corrupted. It’s fairly common to find that file edited and variously clobbered by some apps and by some workarounds, and localhost can take the hit when that happens.

Jan 27, 2020 8:08 AM in response to Shelley Schreiber

1: ad-blocking site entries added, cracked apps or related hacks installed, stuff other than localhost added, compare what’s present with a known-good copy, etc. See Fixing a hacked /etc/hosts file - Apple Community —that's missing the FE80 entry that seems to have been added by Apple, but it’ll work.


127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost 
fe80::1%lo0 localhost


That’s the IPv4 local host, the broadcast address, the IPv6 local host address within the link local address range, and the IPv6 link local address that’s the rough analog to the IPv6 self-assigned address range, respectively.


2: what about that is confusing, as elaborating on that could help me tailor that for clarity, and avoid re-explaining what you already do understand?


Most folks have what’s often called a network switch around, these are boxes that provide four or eight or more ports for RJ45 network cables, and communications among those ports, and connecting to that box brings up the physical network connection (the yellow and green LEDs that many network ports feature will illuminate, etc), without having a connection to other hosts in an IP network. This is where a host will get a self-assigned IP address, among other details, as there’s no DHCP server here.) This is about the simplest Ethernet network possible, outside of no external connection. This eliminates all external boxes—switches are “transparent” and will mostly look and work like lengths of wire—as potential sources of trouble. It also eliminates Wi-Fi, as that can inherently add boxes into the configuration, usually embedded within the equivalent of the AT&T U-verse box here, in this case.


3: Yes, you can eliminate AT&T here, at least for local traffic. Which is what helps with testing. Divide, and isolate, and localize the errors. There is no need for the ISP involvement for local traffic. That’s what 2 above does. AT&T U-verse features what I’d consider some bad ideas, too, particularly around the local network sniffing they seem to do by default.


Jan 29, 2020 7:33 PM in response to Grant Bennet-Alder

Grant Bennet-Alder wrote:

Another experiment you could try is using explicit numeric address of 127.0.0.1 in the address of your web page, to bypass lookup of "localhost"


That’ll get to the target web server if IP is working, though there may or may not be a default site present.

If the web server is using virtual servers as many are and that is keyed to localhost, no page will be shown for 127.0.0.1.

Jan 29, 2020 11:13 AM in response to BDAqua

Thanks for the browser suggestion! And no, I’m not running any anti-virus or cleaner apps. As I have said in my post to MrHoffman, my att|uverse router was “retired” and so firmware updates weren’t being received. They’re sending a current router which the support guy thinks will solve the problem. I will update all when I have received and installed it.

Jan 31, 2020 12:37 PM in response to Shelley Schreiber

That DriveMap entry is odd. But if it’s not in the main file, and if you’ve rebooted since that line was removed, it’s not a factor.


I would not expect to find a DNS zone file in the Apache2 folder. Is there maybe an add-on DNS server installed here? Or is this Mac Pro maybe running OS X Server Snow Leopard 10.6?


The traceroute output would be interesting, too.


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.

Can’t access localhost files

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