Re: [Errno 61] Connection refused when trying to call a remote object method
Irmen de Jong <[email protected]> Mon, 27 Oct 2014 21:58:25 +0100
| Newsgroups | gmane.comp.python.pyro |
|---|---|
| Message-ID | <[email protected]> |
On 27-10-2014 12:56, Francesco Petralia wrote: > I really don't understand what's going on. > > Object are successfully registered, this is the first think that I've checked: > <Pyro4.core.Proxy at 0x104953438, connected, for PYRO:Pyro.NameServer@localhost:9090> > PYRO:obj_886f17575afb4f068c9c210d021223dc-GxbkDS12Q9BJ3c5yGB5LcA@public.gmane.org:51106 > <http://PYRO:obj_886f17575afb4f068c9c210d021223dc-GxbkDS12Q9BJ3c5yGB5LcA@public.gmane.org:51106> > > python3 -m Pyro4.nsc list gives this output: > > --------START LIST > > Pyro.NameServer --> PYRO:[email protected]:9090 > <http://PYRO:[email protected]:9090> > > My_Object_0 --> PYRO:obj_886f17575afb4f068c9c210d021223dc-GxbkDS12Q9BJ3c5yGB5LcA@public.gmane.org:51106 > <http://PYRO:obj_886f17575afb4f068c9c210d021223dc-GxbkDS12Q9BJ3c5yGB5LcA@public.gmane.org:51106> > > --------END LIST > > I also tried to telnet 155.185.73.155 on port 51106 > >>>>telnet 155.185.73.155 51106 > >>>>Trying 155.185.73.155... > >>>>telnet: connect to address 155.185.73.155 <http://155.185.73.155>: Connection refused > >>>>telnet: Unable to connect to remote host Well clearly something in your setup is preventing a connection on that interface address for the given port. You'll have to fix this first, which is not a Pyro issue at all... > Here's some code inside my Object class: > > daemon = Pyro4.Daemon(analyzer.get_ip_address()) .... unless this get_ip_adress returns the wrong ip address. Make sure you're using an ip address of an externally reachable network interface. Also does your setup work when you run it all on the same machine? (i.e. start eliminating variables, such as running stuff over the network, to zoom in on what is causing the issue) Irmen ------------------------------------------------------------------------------