Localhost and 127 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Localhost and 127

Why i cant use localhost but 127.0.0.1 can work?

1st Mar 2017, 6:52 AM
one
3 Answers
+ 3
take a look at your hosts file (location depending on operating system) if there's an entry for localhost.
1st Mar 2017, 7:18 AM
Mario L.
Mario L. - avatar
+ 1
add 127.0.0.1 localhost to your .host file.
1st Mar 2017, 7:26 AM
Andre van Rensburg
Andre van Rensburg - avatar
- 1
use other ports like localhost:8080, localhost:3036 see if it is working.
1st Mar 2017, 7:05 AM
Raj Kumar Chauhan
Raj Kumar Chauhan - avatar