127.0.0.1 is localhost, there the same thing, so you haven't really changed anything. Thats weird how that fixed your problem
Are you sure your /etc/hosts file is correctly configured? Do you have 127.0.0.1 in there aswell? Just curious
As for it being a security issue, considering its the same thing as before I can't see how it could be, correct me if im wrong though?
What gave you the idea that was the problem? What OS are you using by the way?
I would love to see your /etc/hosts file config if you dont mind sharing
Anyway its cool you got it working, great job