Alfresco exposes several RMI services that can be used remotely. The 'well known' port number that you must specify in your remote client is for the RMI registry. Then each separate service has its own port number. You can also run all services over a single port by specifying the same number for the registry and the service.
Please note that older versions (prior to version 3) of Alfresco uses random port numbers for these services. See #Alfresco Port Configuration for details of how to change the configuration of version 2 Alfresco to not use random unused ports.
50500/TCP : RMI Registry for Alfresco server
50501/TCP : avm remote service (avm)
50502/TCP : avm sync service (avmsync)
50503/TCP : attributes service (attributes)
50504/TCP : authentication service (authentication)
50505/TCP : repository service (repo)
50506/TCP : action service (action)
50507/TCP : deployment service (deployment)
The following properties in custom-repository.properties define which ports to use.
This information is for older versions (Version 2 and below) of Alfreso. This configuration is now standard in version 3 of Alfresco.
There are a collection of services which are defined in remote-services-context.xml which are by default randomly selected. The individual service ports may also be hard coded rather than randomly selected if this helps with security. To hard code port numbers add a servicePort property to the configuration of the org.springframework.remoting.rmi.RmiServiceExporter class.
Ports are configured within the deployment.properties file referenced by 'application-context.xml'
If the configuration does not specify a port to use for the deployment service then one will be chosen at random which may cause a problem if there is a firewall between Alfresco and its File System Receiver.
You can also run the FSR over a single port by specifying the same port for the RMI registry and the deployment service.