I tried telnet localhost
on Mac OS X Lion, and this is the output I got.
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
Trying fe80::1%lo0...
telnet: connect to address fe80::1%lo0: Connection refused
telnet: Unable to connect to remote host: Connection refused
It tries three different addresses. I would have expected it to only try 127.0.0.1, or at least to try it first. What are these other addresses?
/etc/hosts
to see the entries forlocalhost
.