Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

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

For 1500 port:

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

My /etc/hosts file:

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

share|improve this question

migrated from stackoverflow.com Aug 26 '12 at 12:18

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

4  
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: stackoverflow.com/questions/12107100/… –  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

 
discard

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