We are trying to make adjustments to our test system so that we can log into both test and prod UIs at the same time. However, we are unable to run 2 client sessions simultaneously at the same time against 2 separate masters and get an error AwE-5009 RMI connection failure.
AwE-5009 RMI Connection failure, check if RmiServer is running
java.net.ConnectException: connect: Address is invalid on local machine, or port is not valid on remote machine
Release : 9.3.2
Component : APPLICATIONS MANAGER
Most likely this is due to the same ClientRMIPortNumber being set on both masters. This would be set if you have a firewall in place.
Both environments most likely have the same port number specified, so only one connection outbound from the client using this port can be made.
Check the ClientRMIPortNumber Options.properties $AW_HOME/web/classes on both servers if they have the same port number.
In this case, it was set to 6061 on both servers.
We changed it to 6062 on one master and used 6061 on the other master. Post changing to use a different port, both instances came up and running fine.