What port is used by Java RMI connection?
RMI generally won’t work over a firewall, since it uses unpredictable ports (it starts off on 1099, and then runs off with a random port after that). In these situations, you generally need to resort to tunnelling RMI over HTTP, which is described well here.