Why can't I use telnet on my MacBook Pro?

When I am in a Shell window in terminal, I type in telnet XX.XXX.XX.155 (my IP) and hit return. I get this message when it responds:

Trying 24.186.35.155...

telnet: connect to address 24.186.35.155: Connection refused

telnet: Unable to connect to remote host


I have no idea what that means. Is there a setting that I have configured wrong? I can't telnet without that connection. What is wrong and why can't I telnet?

MacBook Pro, OS X Mountain Lion (10.8.2), Terminal Fail

Posted on Sep 27, 2012 4:29 PM

Reply
12 replies

Sep 27, 2012 7:53 PM in response to e_bear

Hmm... however you set that up it is most likely be through your AirPort router, not your ISP's, and you may not need Adminium.


You probably just need to enable port forwarding in the Extreme. These posts may have a solution for you:


Port Forwarding on AirPort Extreme 5thGen


portforwaring on airport extreme v6 with mountain lion


Unfortunately I'm no Minecraft expert but hopefully this will start you in the right direction. If that doesn't get you anywhere then search ASC for "Minecraft port forwarding".


Good luck!

Sep 27, 2012 5:55 PM in response to e_bear

You probably need to use ssh, not telnet.


Is this not your ISP's router? The IP address seems to be that of an ISP, so you would have to obtain a username and password from your ISP to access their router. They won't want you to do that.


Good luck finding anyone there who could even spell ssh even after you give them the first and last letters.

Sep 28, 2012 3:35 AM in response to John Galt

The problem I am trying to fix is Telnet itself, rather than the app or ANYTHING to do with the server. I just need to know some kind of configuration to make it so when I try to telnet, I don't get this:


[My Name Here] telnet 24.186.35.155

Trying 24.186.35.155...

telnet: connect to address 24.186.35.155: Connection refused

telnet: Unable to connect to remote host


I want to be able to have access to make Telnet work, otherwise, I'm screwed. Everything else works, I just don't have some kind of configuration working with telnet...


Can you please tell me how to get this to work?


Thanks in advance. I would really love to give you those 10 points!

Sep 28, 2012 7:27 AM in response to e_bear

The obstacle is not that Telnet is not enabled on your Mac; it should already be enabled. The obstacle is that the router's port 23 is closed, as it should be as well.


For example, this is what I get when I telnet to a device on my LAN:


Johns-MacBook:etc john$ telnet 10.0.1.102

Trying 10.0.1.102...

Connected to 10.0.1.102.

Escape character is '^]'.





*********************************************

* Welcome to D-Link Wireless Print Server *

* Telnet Console *

*********************************************



Server Name : PS-A45B2C

Server Model : DP-G301

F/W Version : 1.30

MAC Address : 00 15 E9 A4 5B 2C

Uptime : 8 days, 22:35:10



Please Enter Password: *********



[Main Menu]

1 - Server Configuration

2 - Port Configuration

3 - TCP/IP Configuration

4 - AppleTalk Configuration

5 - Display Information

6 - Tools

7 - Wireless Configuration

8 - Save Configuration

0 - Quit



Enter Selection:




Another example:


Johns-MacBook:etc john$ telnet 10.0.1.103

Trying 10.0.1.103...

Connected to 10.0.1.103.

Escape character is '^]'.





Lantronix EPS2-100 Version V3.7/1(031017)



Type HELP at the 'Local_6> ' prompt for assistance.



Username> john

Password> *********



Local_6>



If Telnet were enabled on your router you would get something resembling those examples. Instead, this is what happens:


Johns-MacBook:etc john$

Johns-MacBook:etc john$ telnet 24.186.35.155

Trying 24.186.35.155...

telnet: connect to address 24.186.35.155: Connection refused

telnet: Unable to connect to remote host

Johns-MacBook:etc john$


Same as you. As I said I doubt telnet is enabled anyway, but using ssh results in the same:


Johns-MacBook:etc john$

Johns-MacBook:etc john$ ssh 24.186.35.155

ssh: connect to host 24.186.35.155 port 22: Connection refused

Johns-MacBook:etc john$


That happens because your ISP does not want me access to their equipment, and neither would you. If it were that easy I would be one step closer to your Mac and everything else on your LAN. That's why I believe you need to investigate port forwarding on your router (not your ISP's) to make a Minecraft server work.


Wish I could be more help, and I have enough points already 🙂 What I don't know about Minecraft could fill a book though, and that's why I think you need to investigate this on a Minecraft forum.

Sep 28, 2012 8:04 AM in response to John Galt

take a note - he is telnetting his own _local_ IP on same mac. Nothing to do with router, see:


UNIT-5697:~ DS$ telnet localhost

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...

telnet: connect to address fe80::1: Connection refused

telnet: Unable to connect to remote host


no telnet server daemon on local host - thats it.



for telnet to exactly Minecraft - minecraft should be running at first. then try to telnet it on correct port. in local network it should run.

For telnetting it from somewhere your local IP will not fit - you need to know your external IP and setup ome bridge in router. This is not a question on Mac telnet, but question on Minecraft setup over firewall/router, you should search at appropriate forums. This setap is irrelevant to host OS but bound to your ISP, router model and setup.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Why can't I use telnet on my MacBook Pro?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.