xmlrpclib, Windows, connection refused?

John Abel john.abel at pa.press.net
Fri Feb 21 03:41:55 EST 2003


I'm guessing your using SimpleXMLRPCServer?  What interface is the 
server bound too?  It needs to be bound to the IP, rather than 
localhost.  When specifiying the host/port, try using:

(socket.gethostbyname( socket.gethostname() ), 8888 )

HTH

John

Jonathan McLin wrote:

>I've been experimenting with a distributed application using xmlrpclib on
>Python 2.2.  Preliminary development was on a single machine, connecting via
>"localhost:8888".  This has worked fine.
>
>When I try to connect two different machines, the client reports error 10061
>from the socket lib, "connection refused".  I've tried connecting between
>various machines running Win2K Pro or XP, with the same result.  I've tried
>to connect using both NetBIOS names and explicit TCP/IP addresses, again,
>same result.  The machines are all on the same subnet, same domain.
>
>I've googled extensively to no avail.  What am I missing?
>
>Thanks,
>Jon
>
>  
>






More information about the Python-list mailing list