Skip to content
Advertisement

Java RMI can not connect to registry

I have an server process with internal registry (on an Amazon EC2 instance). The server starts correctly and the registry binds itself to port 1099. If I use netstat I can see that it is bound:

JavaScript

Additionally I’ve added Port 1099 TCP to the security group of the instance. If I sstart nmap on the host, it lists the port as open:

JavaScript

However, it is no possible for the client to connect to the server. After a while I get an java.net.ConnectException: Connection timed out exception.

What am I missing? Are there other ports that need to be opened?

Advertisement

Answer

Well, im pretty sure I had to open another port. Because when I opened all ports for incoming traffic, it worked.

Since this was only a test setup i lived with that and simply restricted incoming traffic to well known sources.

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement