[Twisted-Python] Queries about connecting to a XML-RPC server over IPv6
Amit Saha
asaha at redhat.com
Sun Dec 8 22:28:47 MST 2013
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.
Thanks for any insights.
Best,
Amit.
--
Amit Saha <http://echorand.me>
More information about the Twisted-Python
mailing list