python - XML-RPC connection problem -


I have a simple XML RPC server running on the local host: The server has the following address: ubiquitous = ( "Localhost", 8080) . When I run a client on a different machine, then I have a connection denied error . However, when I type the line

  servAddr = ("localhost", 8080)   

to

  servAddr = ( "Myhostname", 8080)   

Everything works fine ...

Why? How can you know the hostname for the startup script for the machine?

'localhost' This is a nickname at 127.0.0.1 IP address. It only works when the server and client are running on the same machine.

When you put the client on another machine, refer to the machine of the local host client - & gt; Not a server machine!

More information about localhost.

Comments