title: Java RMI can not connect to registry
body: <p>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:</p>
  
  <pre><code>tcp6     0      0    :::1099    :::*    LISTEN     0     3258   765/java
  </code></pre>
  
  <p>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:</p>
  
  <pre><code>Host is up (0.061s latency).
  Not shown: 997 filtered ports
  PORT     STATE  SERVICE
  22/tcp   open   ssh
  1098/tcp closed unknown
  1099/tcp open   unknown
  </code></pre>
  
  <p>However, it is no possible for the client to connect to the server. After a while I get an <em>java.net.ConnectException: Connection timed out</em> exception. </p>
  
  <p>What am I missing? Are there other ports that need to be opened?</p>