Boss 5.0.1, EJB 3. Server is running on computer which doesn't have remote IP only local
Got exception "Caused by: org.jboss.remoting.CannotConnectException: Can not get connection to server. Problem establishing socket connection for InvokerLocator [socket://10.198.138.148:3873/?]"
Server is launched -Djava.rmi.server.hostname=<remote_ip> -Dremoting.bind_by_host=false
Additionally I found, that I can and need to define property "clientConnectAddress=<remote_ip>" for jboss remoting.
I added (uncommented line) into remoting-jboss-bens.xml, but it didn't work. Then I found that this connector is for EJB2 but for EJB3 is used ejb3-connectors-jboss-beans.xml . Then I added following lines to EJB3 connector