access to xml_rpc server problem

Ted Zeng zeng at adobe.com
Wed Sep 20 20:47:23 EDT 2006


Good question. I will check this out.

When I run the server on a machine with static IP,
I need to run the server with

SimpleXMLRPCServer.SimpleXMLRPCServer(("machine_domain.mycompany.com",
8000))
server.serve_forever()

then client can access the server with
server = xmlrpclib.Server('http:// machine_domain.mycompany.com:8000')

If the server uses "localhost" such as the following instead, then the
client still could not access the server:

SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8000))
server.serve_forever()


ted

-----Original Message-----
From: Gabriel Genellina [mailto:gagsl-py at yahoo.com.ar] 
Sent: Wednesday, September 20, 2006 5:38 PM
To: Ted Zeng
Cc: Eric Smith; python-list at python.org
Subject: Re: access to xml_rpc server problem

At Wednesday 20/9/2006 21:30, Ted Zeng wrote:

>But if I use server's ip address instead of localhost in the client,
>then it could not access the server.

Maybe you have a firewall blocking access?



Gabriel Genellina
Softlab SRL 





More information about the Python-list mailing list