Connecting to Python XML RPC from the Mac
Posted
by MAC
on Stack Overflow
See other posts from Stack Overflow
or by MAC
Published on 2010-04-15T19:07:56Z
Indexed on
2010/04/15
19:13 UTC
Read the original article
Hit count: 420
Hi,
I wrote an XML RPC server in python and a simple Test Client for it in python. The Server runs on a linux box. I tested it by running the python client on the same linux machine and it works.
I then tried to run the python client on a Mac and i get the following error
socket.error: (61, 'Connection Refused')
I can ping and ssh into the linux machine from the Mac. So i dont think its a configuration or firewall error.
Does anyone have any idea what could be going wrong?
The code for the client is as below:
import xmlrpclib
s = xmlrpclib.ServerProxy('http://143.252.249.141:8000')
print s.GetUsers()
print s.system.listMethods()
© Stack Overflow or respective owner