[Twisted-Python] Queries about connecting to a XML-RPC server over IPv6

Amit Saha asaha at redhat.com
Sun Dec 8 22:34:27 MST 2013



----- Original Message -----
> From: "Amit Saha" <asaha at redhat.com>
> To: twisted-python at twistedmatrix.com
> Sent: Monday, December 9, 2013 3:28:47 PM
> Subject: [Twisted-Python] Queries about connecting to a XML-RPC server over	IPv6
> 
> Hello,
> 
> I am trying to connect to a local XML-RPC server with IPv4 *disabled*. Here
> is my script:
> 
> from twisted.web.xmlrpc import Proxy
> from twisted.internet import reactor
> 
> def printValue(value):
>     print repr(value)
>     reactor.stop()
> 
> def printError(error):
>     print 'error', error
>     reactor.stop()
> 
> proxy = Proxy('http://localhost6:8000')
> proxy.callRemote('my_proxy_method').addCallbacks(printValue, printError)
> 
> 
> When I run it, i get "No route to host: 101, Network is unreachable".
> 
> However, 'curl -6 localhost:8000' succeeds. What could be going on here?
> I am using Twisted-12.2 on Fedora 19.

That should be, 'curl -6 localhost6:8000'.




More information about the Twisted-Python mailing list