Cache Server Ports
This page describes the NCache server ports used for client/server communication and communication between the NCache Service and CacheHost processes. It explains the default TCP ports and configurable management port range used by cache instances, along with the settings available in the NCache Service configuration file.
Client/Server TCP Port
The Client/Server TCP Port in the service config file specifies the port at which the cache server will listen for the incoming connection requests.
<add key="NCacheServer.Port" value="9800"/>
Management Ports
Important
If all ports in the configured CacheHost management port range are occupied, cache creation fails and NCache displays an error indicating that a custom management port is required. The NCache Service remains responsive. In this case, manually add the cache configuration to config.ncconf and assign a management port to the same cache in CacheHostPorts.xml located at %NCHOME%\bin\service. The cache must be present in both files.
Management Port in the service config file specifies the port at which the cache management server listens for incoming connection requests.
<add key="NCacheServer.ManagementPort" value="9803"/>
When a cache is started in a separate CacheHost process, it is assigned a single CacheHost port, including for the Partition-Replica topology. The port is automatically assigned from the configured range. ManagementPortLower specifies the starting port from which the first available port is assigned, while ManagementPortUpper specifies the upper limit of the range.
<add key="NCacheServer.ManagementPortLower" value="9831"/>
<add key="NCacheServer.ManagementPortUpper" value="9880"/>