I have two server with these specifications:
IP address: 192.168.1.94
IP address: 192.168.1.221
I want to telnet to the first one from the second one (to port 5029) but I get this error:
root@debian:~# telnet 192.168.1.94 5029 Trying 192.168.1.94... telnet: Unable to connect to remote host: Connection refused I can telnet from 192.168.1.94 to itself. this means that a program is listening to 5029 port:
[root@myelastix ~]# telnet localhost 5029 Trying 127.0.0.1... Connected to myelastix.mohaymen.co (127.0.0.1). Escape character is '^]'. I thought may be firewall is blocking connection in 192.168.1.94 server but these are firewall rules:
[root@myelastix ~]# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination besides I stopped iptables also but nothing happens again:
[root@myelastix ~]# service iptables stop Flushing firewall rules: [ OK ] Setting chains to policy ACCEPT: filter [ OK ] Unloading iptables modules: [ OK ] what is the problem?