Cache Server Ports
This page discusses how to configure the different cache server ports available in NCache for client/server communication, cache management, cluster coordination, and SNMP-based monitoring. It explains the default TCP ports used by NCache, when and why these ports must be opened in firewalls, and how to update port settings in the NCache Service configuration file to avoid conflicts and ensure reliable cluster and management operations.
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
Management Port in the service config file specifies the port at which the cache management server will listen for the incoming connection requests.
<add key="NCacheServer.ManagementPort" value="8250" />
When a cache is started in its own separate process, it is assigned a Management Port (two ports in case of the Partition-Replica topology). These ports are assigned from a range of ports which can be configured by setting the keys listed below. ManagementPortLower is the starting port from which the first free port available will be consumed. The ManagementPortUpper is the upper limit.
<add key="NCacheServer.ManagementPortLower" value="8300" />
<add key="NCacheServer.ManagementPortUpper" value="8400" />
SNMP Listeners Info Port
This tag is used to specify the port on which the SNMP listeners info sub-agent runs. It enables SNMP-based monitoring of cache counters.
<add key="NCacheServer.SnmpListenersInfoPort" value="8256"/>
By default, the value of this is set to 8256, but can be configured as per your requirements.
See Also
Configure Caches
Cache Settings
Client Connectivity Settings
Memory