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
telnet: connect to address 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, or at least to try it first. What are these other addresses?

  • FYI this behavior has been around a long time. You can peek in /etc/hosts to see the entries for localhost. Mar 29, 2012 at 6:03

3 Answers 3

14 is the (IPv4) localhost you are used to.

::1 is the IPv6 localhost address.

fe80::1%lo0 looks like a link-local IPv6 loopback address on the device lo0.


::1 is IPv6 equivalent of

fe80::1 is link-local IPv6 address (one per adapter).


Warning: Don't EVER run a telnet server on any system, always use sshd.

If your firewall goes down temporarily, even for a few seconds, there is a good chance someone can get in and hack your system.

When the world eventually moves to ipv6, many systems may be especially vulnerable as NAT and port forwarding won't offer any defence.

A telnet client however is useful for connecting to open ports for debugging.

  • 1
    This doesn't address the question. Also it doesn't explain why a telnet server is bad (plain text). Just saying "Don't do X" without an explanation is not helpful.
    – Burhan Ali
    Apr 7, 2012 at 9:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .