Telnet Connection refused error

Hi all,

i got stuck with telnet issue, I am not able to telnet on 4001 port it show connection refused.

with default port it will open

[root@mindlanf-2 ~]# telnet 127.0.0.1
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Fedora release 14 (Laughlin)
Kernel 2.6.35.6-45.fc14.i686 on an i686 (3)
login:

when we try for specific port say 4001 it says connection refused

[root@mindlanf-2 ~]# telnet 127.0.0.1 4001
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
[root@mindlanf-2 ~]#

please any one suggest me how to resolve this issue as its very important.

Thanks
Muzaffar

You don't have a listener on port 4001 or there's a firewall in the way. Telnet doesn't sit there creating sockets on the other side.