I am trying to run a simple application using Pyro4 in python2.7; there are two programs 1st is server.py which binds the object with its IP address and also runs the naming service, and 2nd is the client.py which is running in a remote pc in the same network. The code of the following are as follows:
I am starting the naming service with the following command:
python -Wignore -m Pyro4.naming --host 10.42.0.1 --port 9999
I checked my ip-address using the command ifconfig
server.py
import Pyro4;
class chat:
def passMessage(self,msg):
print(msg);
return "Hello from the server....";
def main():
chatObj = chat();
Pyro4.Daemon.serveSimple(
{
chatObj : "chatObject"
},
"10.42.0.1",10101,ns=True);
main();
client.py
import Pyro4;
chatObj = Pyro4.Proxy("PYRONAME:chatObject");
chatObj.passMessage("Hello From the client....");
The naming server start without any problems, but when I run the server.py it shows the error as mentioned in the title.
When I tested the same application in Windows environment, it worked without any error but showing error in Ubuntu 13.04 Any suggestion??