xmlrpclib question

Fredrik Lundh fredrik at pythonware.com
Tue Dec 21 14:49:22 CET 2004

"writeson" <writeson at charter.net> wrote:

> I tried the xmlrpclib examples from the Python Cookbook and had a
> problem. The example works fine so long as the server and client are on
> the same machine. But as soon as I try to run the client from another
> machine (all linux machines on the same network) I get a socket.error
> 111, connection refused. I've tried some different things to get past
> this, different ports, put machines in /etc/hosts, but to no avail.

the xmlrpclib client library doesn't need any special configuration to access a
remote host -- all you need is being able to connect to the host via a TCP/IP
socket, and having someone at the other end that accepts the connection.

if you're 100% sure that there's a HTTP server running at the remote end, it
looks like the server (or firewalls/routers in your network) doesn't accept TCP/IP
connections from the machine you're running the client on.

what happens if you point an unproxied web browser to the same address?

what happens if you telnet to the machine?  (make sure you telnet to the right port)

    $ telnet somemachine someport
    Trying 123.456.789...
    Connected to somemachine.
    Escape character is '^]'.
    <title>501 Method Not Implemented</title>
    <h1>Method Not Implemented</h1>
    <p>HELP to / not supported.<br />


More information about the Python-list mailing list