From: Emlio <uc...@ya...> - 2012-02-08 13:13:53
|
Hi all I'm starting to wok with the soappy toolon a linux enviromment and the usual "hello wolrd" worked fine: Lets call soappyServer.py to the file: import SOAPpy def hello(): return "Hello World" server = SOAPpy.SOAPServer(("localhost", 8080)) server.registerFunction(hello) server.serve_forever() And soappyClient.py to the file: import SOAPpy server = SOAPpy.SOAPProxy("http://localhost:8080/") print server.hello() Runnning soappyServer.py in order to start the service, and then soappyClient.py gives the expected result. But the problem arises when I try to run server and client from different computers that are in the same network. The machine running soappyServer.py has the port 8080 open, and all the tests I occurred to run to test it are succesful, such as "$ nmap localhost" and similar. In the computer with the client file, its content is something similar to: import SOAPpy server = SOAPpy.SOAPProxy("http://192.123.1.1:8080/") print server.hello() But the exit I get is: ... socket.error: [Errno 113] No route to host I've searched all the ways I've think of related to this error, but I'm stuck. As I mentioned above, the port 8080 seems to be alright in the server machine (192.123.1.1). I have ping for that machine too, and I can access it by ssh. Any idea of what I'm missing here? Cheers ED |