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:[EMAIL PROTECTED] 
Sent: Wednesday, September 20, 2006 5:38 PM
To: Ted Zeng
Cc: Eric Smith; python-list@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 


-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to