IPv6 Addresses Support
NCache supports IPv6 addresses for both cluster-wide and client-server communication. Users can assign IPv6 addresses to the BindToClusterIP
and BindToClientServerIP
tags in the cache server configuration file found in the NCache installation as follows:
- .NET: Alachisoft.NCache.Service.exe.config located in
%NCHOME%\bin\service
- .NET Core Windows: Alachisoft.NCache.Service.dll.config located in
%NCHOME%\bin\service
- .NET Core Linux: Alachisoft.NCache.Daemon.dll.config located in
/opt/ncache/bin/service
Use the following xml configuration:
<add key="NCacheServer.BindToClusterIP" value="FE80::0202:B3FF:FE1E:8329" />
<add key="NCacheServer.BindToClientServerIP" value="FE80::0202:B3FF:FE1E:8329" />
IPv6 Limitation for Monitoring Cache Statistics
The only limitation with IPv6 in NCache is that cache statistics cannot be fetched in the NCache Management Center using IPv6 addresses. This is because the NCache Management Center employs a third-party tool (PerfMon) to fetch and display cache statistics, which does not support IPv6. As a workaround, if your NCache cluster uses IPv6, it is recommended to use the hostname (server name) to fetch cache statistics.
Warning
When using NCache Command Line tools where the server name or IPv6 address is required as an argument, it is recommended to use the IPv6 address instead of the server name. This is because using the server name might run the tool on such an IP address on the server where NCache Service is not running. This will result in an exception.
See Also
Monitor Caches using the NCache Monitor
Monitor Bridge
Monitor Caches using the NCache Management Center
Troubleshooting the NCache Monitoring