Corda Server™ Administrator uses two ports to communicate with Corda Server. These ports, by default, are 2003 and 2004. Corda Server runs on ports 2001 and 2002; therefore, the ports 2001 through 2004 must be available for Corda Server under its default settings.
Change the ports for Corda Server in Server Settings > Address / Port screen in Corda Server Administrator. However, if you cannot start Corda Server Administrator, modify these ports externally.
The list below describes each port that the Corda Server uses and how to change these ports externally. For each port this process requires you to edit the XML-based configuration file, server_config.txt file, located in the config directory of Corda Server installation. Restart Corda Server after making any changes.
Note: To learn more about the server_config.txt file, see server_config.txt.
This is the port on which the Corda Server "runs." Clients request images from Corda Server over this port. This port is the only port that you have to open up if you want to clients to be able to view Corda® images from outside of a firewall.
Change this port by modifying the following line in <product_root>\Server\config\server_config.txt :
<CS_Port>2001</CS_Port>
Replace the number 2001 with the number of the port on which Corda Server Administrator should run.
If the system has multiple IP addresses, bind Corda Server to a specific address by specifying it here. For example, to bind Corda Server to port 2001 at IP address 10.0.1.1, add the following to server_config.txt :
<CS_Port>10.0.1.1:2001</CS_Port>
This is the port that the Corda Embedder uses to communicate with Corda Server.
Change this port by modifying the following line in <product_root>\Server\config\server_config.txt :
<CS_Commport>2002</CS_Commport>
Replace the number 2002 with the number of the port on which Corda Server Administrator should run.
If the system has multiple IP addresses, bind the comm port to a specific address by specifying it here. For example, to bind the comm port to port 2002 at IP address 10.0.1.1, add the following to server_config.txt file:
<CS_Commport>10.0.1.1:2002</CS_Commport>
This port facilitates communication between Corda Server and Corda Server Administrator.
Change this port by modifying the following line in <product_root>\Server\config\server_config.txt :
<Agent_Port>2003</Agent_Port>
Replace the number 2003 with the number of the port that the agent should use.
This is the port that Corda Server Administrator "runs" on. In other words, you access Corda Server Administrator via this port. This port is the only port that you have to open up if you want to administer Corda Server from outside of a firewall (not recommended).
Change this port by modifying the following line in <product_root>\Server\config\server_config.txt :
<CAS_Port>2004</CAS_Port>
Replace the number 2004 with the number of the port on which Corda Server Administrator should run.
If the system has multiple IP addresses, bind Corda Server Administrator to a specific address by specifying it here. For example, to bind Corda Server Administrator to port 2004 at IP address 10.0.1.1, add the following to server_config.txt:
<CAS_Port>10.0.1.1:2004</CAS_Port>