xml-rpc, O'Reilly cookbook example not working???
peter at engcorp.com
Wed Jan 8 00:20:18 CET 2003
bradh at cuneata.net wrote:
> Quoting "Meehan, Francois" <Francois at iecholden.com>:
> > if __name__=='__main__':
> > server = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost",
> > 8000))
> "localhost" has very specific meaning and will normally only bind to the
> loopback interface. If you insert the machine name here, you should be able to
> use it on another interface.
Or, perhaps more generally, just use an address of ('', 8000) so that
the server listens on all interfaces (including, not coincidentally,
127.0.0.1 or localhost).
More information about the Python-list