java - Cannot establish RMI connection to remote machine -
this question has answer here:
- rmi cannot connect remote server 2 answers
i can't seem connect 2 machines using rmi. make sure there wasn't wrong code copied simple example wikipedia (http://en.wikipedia.org/wiki/java_remote_method_invocation) , edited code print out simple int.
i tried giving permissions , turning firewalls off , still error:
java.rmi.connectexception: connection refused host 55.229.xx.xxx; nested exception is:java.net.connectexception: connection timed out: connect
i've been trying past 3 days , still can't seem past basic configuration problems.
the problem rmi server sending local address, instead of wan address.
system.setproperty("java.rmi.server.hostname", *host ip*);
also take @ security policies regarding rmi: http://docs.oracle.com/javase/tutorial/rmi/running.html
Comments
Post a Comment