java - Cannot establish RMI connection to remote machine -


this question has answer here:

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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -