Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I try to test open ports with telnet client. Unfortunately I get error:

[root@localhost ~]# telnet
telnet: connect to address Connection refused

For 1500 port:

[root@localhost ~]# telnet 1500
telnet: connect to address Connection refused
[root@localhost ~]#

My /etc/hosts file: localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6

I flushed iptables, and I have UP LOOPBACK RUNNING.

How could I fix it to connect and test ports?

Thanks a lot for replies.

share|improve this question

migrated from Aug 26 '12 at 12:18

This question came from our site for professional and enthusiast programmers.

Evidently there is nothing listening to ports 23 and 1500 on your machine, there is nothing to fix. – InternetSeriousBusiness Aug 24 '12 at 8:48
Do you want to enable Telnet? – TOC Aug 24 '12 at 9:05
Thanks, yes this is reason. I thought, that connect telnet client can open port, but it only connect to just opened port? My another question, related with this topis:… – luk4443 Aug 24 '12 at 10:03

1 Answer 1

You need a service to listen on those ports, otherwise tools like telnet cannot connect to them.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.