Mobile app version of vmapp.org
Login or Join
Samaraweera270

: MAMP not working as 'localhost' but works with "127.0.0.1" I just installed MAMP on Mac OSX 10.8.2. When it is started, I'm not able to access the server through http://localhost:8888 but when

@Samaraweera270

Posted in: #Apache #Localhost #Mac #Mamp #Server

I just installed MAMP on Mac OSX 10.8.2.

When it is started, I'm not able to access the server through localhost:8888 but when I visit 127.0.0.1:8888/ and it works fine.

Why is it so? and how can I make it work with when I type localhost:8888

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Samaraweera270

1 Comments

Sorted by latest first Latest Oldest Best

 

@Lee4591628

Open your host file /etc/hosts with a text editor and make sure it contains:

127.0.0.1 localhost


If it still doesn't work, run this command: file -b /etc/hosts and make sure the result is ASCII English text and nothing else. If it is not, use an editor such as TextWrangler or BBEdit to clean it up (use Unix end-of-line characters).

Source: Apple Support Communities

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme