The "EOF on multi line" that you see are caused by ipython On Dec 20, 2012 3:33 PM, "drkjam" <[email protected]> wrote:
> Hi Tomer, > > Could you elaborate on the known IPython issues with rpyc? > > Regards, > > Dave M. > > On 20 Dec 2012, at 10:23, Tomer Filiba <[email protected]> wrote: > > if you bind the server socket to 127.0.0.1, only inbound connections > (i.e., connections from the localhost to itself) are allowed. > even if you run on the same server, but use the server's external IP or > name, it will fail. > you have to bind IPADDR_ANY=0.0.0.0 (in python, the empty string) in order > to connect from a remote machine. > > >>> import socket > >>> s=socket.socket() > >>> s.bind(("localhost", 17777)) > >>> s.listen(1) > >>> s2=socket.socket() > >>> s2.connect(("localhost", 17777)) > >>> s.accept() > (<socket._socketobject object at 0x7fdb39921750>, ('127.0.0.1', 38872)) > >>> s3=socket.socket() > >>> s3.connect(("192.168.1.143", 17777)) # this is the external IP of > local host > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "/usr/lib/python2.7/socket.py", line 224, in meth > return getattr(self._sock,name)(*args) > socket.error: [Errno 111] Connection refused > > in other words, you're not doing anything wrong. btw, in this case, you > don't have to pass a hostname at all, it defaults to "". > also, IPython has known issues with rpyc, so i'd use the vanilla > interpreter if i were you. > > > hope this gets you started > -tomer > > > ----------------------------------------------------------------- > > *Tomer Filiba* > tomerfiliba.com <http://www.facebook.com/tomerfiliba> > <http://il.linkedin.com/in/tomerfiliba> > > > On Thu, Dec 20, 2012 at 12:33 AM, <[email protected]> wrote: > >> server_name >> > >
