[Twisted-Python] Re: 111: Connection refused
andrew-twisted at puzzling.org
Thu Aug 5 18:53:36 MDT 2004
On Thu, Aug 05, 2004 at 03:59:09PM -0700, Damon Fasching wrote:
> After starting the server on both machines,
> ~ telnet localhost 8789
> works on both machines, and
> ~ telnet shuttle-1 8789
> works from shuttle-2, but
> ~ telnet shuttle-2 8789
> from shuttle-1 fails with the Connection refused
> In addition, after starting the server, the following
> line is added to the output of "netstat -ntlp" on both
> tcp 0 0 0.0.0.0:8789 0.0.0.0:*
> LISTEN 4040/python
> modulo the PID.
Ok, then you almost certainly have a network configuration problem of some
kind. While this isn't strictly speaking a Twisted problem, here's some
troubleshooting advice and further questions that might help...
Check that "host shuttle-2" from shuttle-1 resolves to the correct IP
address -- perhaps your DNS or /etc/hosts file is misconfigured. Also, do
you have a firewall or router between those two machines? -- if so, it may
be misconfigured to block connections from shuttle-1 to shuttle-2 on 8789.
Similarly, if you have a firewall/iptables rules on shuttle-1 and shuttle-2,
Also, can you reach other services on shuttle-2 from shuttle-1, such as ssh
or http, or is every connection refused?
If you run "tcpdump host shuttle-1" on shuttle-2 while trying to connect to
shuttle-1, what traffic does it report, if any? Similarly, can you ping
shuttle-2 from shuttle-1, and if so, does that tcpdump command report
More information about the Twisted-Python