views:

110

answers:

1

I am trying to implement a remote object implementation using xmlrpc, and python 3. I have tried the example at http://docs.python.org/3.1/library/xmlrpc.server.html?highlight=xmlrpc#simplexmlrpcserver-example, but it only works to and from localhost, how can I get it to work to and from internal IPs?

A: 

Perhaps I'm misunderstanding your question, but... Have you tried running the server code on another machine, and the client code (changing the 'localhost' value in the first line of the client code s = xmlrpc.client.ServerProxy('http://localhost:8000') to the IP address of the remote server?

ewall
Yes, but it doesn't seem to work.
Joe
What kind of errors are you getting? When the server is running on the remote computer, can you use a web browser to get a response at http://remote:8000 (or 'telnet remote 8000')?
ewall
I'm getting timeout.
Joe
You get the timeout even from a web browser? Sounds like it can't connect across the network... Things to check include firewalls (in between, or software firewalls on the server-side) and routing (can you even ping the server IP address from the client?).
ewall