access to xml_rpc server problem

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ted Zeng

    #1

    access to xml_rpc server problem

    HI,

    I run a xml_rpc server like the following:(samp le code from internet)

    server = SimpleXMLRPCSer ver.SimpleXMLRP CServer(("local host", 8000))
    server.serve_fo rever()

    If my client is on the same machine, I use :(also from internet sample
    code)

    server = xmlrpclib.Serve r('http://localhost:8000' )
    print server.chop_in_ half('I am a confidant guy')

    This works fine.

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

    server = xmlrpclib.Serve r('http://machine_ip_addr ess:8000')
    print server.chop_in_ half('I am a confidant guy')


    How can my client (runs on other machine) access the server? The server
    runs on a machine with dynamic IP. But my client knows the IP address.


    Ted Zeng

Working...