Changing RMI Registry Port

Hello,

I’d like to run more than one servoy server on a single computer. They would each be accessing different databases.

I found that I could set most of the ports in server/conf/server.xml

However, I still get an error that the rmi registry port is still in use, so I altered useRMIRegistryPort to 1098 instead of 1099.

When I start up, though, I get the following error message:

java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
java.net.BindException: Address already in use
java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
java.net.BindException: Address already in use

Using RMI registry on port 1100

It DOES work, but I would like to be able to define the ports so I know which ports are being used, and let them through a firewall.

Is useRMIRegistryPort the right parameter? If not, where should I be looking?

Thank you,
Frank Mattheus

In my case, I used port 1100 for RMI and it’s still saying:

java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
java.net.BindException: Address already in use: JVM_Bind
java.rmi.server.ExportException: Port already in use: 1099; nested exception is:
java.net.BindException: Address already in use: JVM_Bind

What port should be used?

And, how do I see how many instances of Servoy Server are running on my network. I’m in a Citrix environment so could this be the problem, more than one instance running in the wild?