Connect Error

524 views
Skip to first unread message

Mick Sulley

unread,
Mar 31, 2012, 6:45:41 AM3/31/12
to rpyc
Hi,

Sorry if this a basic question. I am trying to connect from one server
to another, both Ubuntu 10.04, and it fails. This is what I get -

>>> conn = rpyc.classic.connect("moon")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.6/dist-packages/rpyc/utils/classic.py",
line 67, in connect
return factory.connect(host, port, SlaveService, ipv6 = ipv6)
File "/usr/local/lib/python2.6/dist-packages/rpyc/utils/factory.py",
line 83, in connect
s = SocketStream.connect(host, port, ipv6 = ipv6)
File "/usr/local/lib/python2.6/dist-packages/rpyc/core/stream.py",
line 106, in connect
return cls(cls._connect(host, port, **kwargs))
File "/usr/local/lib/python2.6/dist-packages/rpyc/core/stream.py",
line 84, in _connect
s.connect((host, port))
File "<string>", line 1, in connect
socket.error: [Errno 111] Connection refused
>>>


My network is still all on ipv4, so is it looking for ipv6 connections?
If so how do I change it?

Thanks
Mick

Tomer Filiba

unread,
Mar 31, 2012, 2:53:43 PM3/31/12
to rp...@googlegroups.com
rpyc defaults to ipv4 unless you explicitly requested ipv6, so that surely isn't the issue.
sounds like a firewall thing -- the port (18812) is nonstandard and is probably blocked by your firewall, either on the local machine or the remote one. 

hope that helps,
-tomer

-----------------------------------------------------------------
    
Tomer Filiba 
tomerfiliba.com        

Mick Sulley

unread,
Mar 31, 2012, 5:34:34 PM3/31/12
to rp...@googlegroups.com
Thanks for your reply Tomer.  After a lot more research I discovered that the problem was even more basic than that, I hadn't started rpyc_classic.py on the other machine. Dohhh!

Thanks
Mick
Reply all
Reply to author
Forward
0 new messages