• Facebook
  • Twitter
  • Youtube
  • LinedIn
  • RSS
  • Docs
  • Comparisons
  • Blogs
  • Download
  • Contact Us
Download
Show / Hide Table of Contents

Ports

NCache uses TCP ports for client-server communication, Web Management, NCache Cloud Portal access, and communication among cache cluster nodes. By default, NCache uses port 9800 for client-server communication, port 9801 for Web Management over HTTP, port 9802 for Web Management over HTTPS, ports 9881–9980 for cache cluster communication, port 9998 for NCache Cloud Portal over HTTPS, and port 9999 for NCache Cloud Portal over HTTP.

Important

For firewall configurations, forward TCP ports 9800–9999 as a range. This range covers the NCache Service, management and monitoring, Bridge, CacheHost, cache cluster, RESP Server, and NCache Cloud Portal communication ports.

When accessing the NCache Management Center through an HTTPS load balancer, the load balancer listens on port 9801 and forwards requests to the Web Management HTTP port 9801. Similarly, when accessing the NCache Cloud Portal through an HTTPS load balancer, the load balancer listens on port 9999 and forwards requests to the Cloud Portal HTTP port 9999. Both load balancers must support sticky sessions.

Web Management and NCache Cloud Portal Ports

NCache uses separate HTTP and HTTPS ports for Web Management and the NCache Cloud Portal.

  • Web Management HTTP: 9801
  • Web Management HTTPS: 9802
  • NCache Cloud Portal HTTP: 9999
  • NCache Cloud Portal HTTPS: 9998
Note

When NCache Management Center is accessed through an HTTPS load balancer, the load balancer forwards requests to HTTP port 9801. Sticky-session support is required. When the NCache Cloud Portal is accessed through an HTTPS load balancer, the load balancer forwards requests to HTTP port 9999. Sticky-session support is required.

Configuring Cluster Ports for Inter-Node Communication

The cluster ports are used for communication among server nodes in a cache cluster. You can specify a cluster port and port range so that if the configured port is unavailable, NCache can use the next available port within the specified range. By default, cache cluster communication uses ports starting from 9881 within the configured range.

Using the NCache Management Center

  • Launch the NCache Management Center by browsing to http://localhost:9801 or <server-ip>:9801.

  • In the left navigation bar, click on Clustered Caches or Local Caches, based on the cache to configure.

Important

Ensure the cache stops before proceeding.

  • Against the cache name, click on View Details.

CLuster Port

  • This opens up the detailed configuration page for the cache. Go to the Advanced Settings tab and click on Cluster Settings in the left bar.

  • Change the Cluster Port and Port Range, as required.

CLuster Port Port Range

  • Click on Save Changes to apply this configuration to the cache.

  • Start the cache to resume operations.

Manually Editing NCache Configuration

You can manually edit the NCache configuration file as explained below:

Important

Ensure the cache stops before making any configuration changes.

  • Specify the port range through config.ncconf by specifying the cluster-port and port-range in the <cluster-connection-settings> tag:
<cluster-settings ...>
  <cluster-connection-settings cluster-port="9881" port-range="2" .../>
</cluster-settings>
  • Once changes are made, start the cache, and restart the NCache Service.

NCache Server Port for Client Connections

At the NCache Server Port, the NCache server starts and accepts various client connections. The default value of this port is 9800. You can change the default value through the Service Configuration file, Alachisoft.NCache.Service.dll.config located in %NCHOME%\bin\service as follows:

<add key="NCacheServer.Port" value="9800" />

This will change the value on the server-side.

See Also

Operation Timeout
Statistic Replication Interval
Connection Retries
Retry Interval
Firewalls and Ports

Contact Us

PHONE

+1 214-619-2601   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • Edition Comparison
  • NCache Architecture
  • Benchmarks
Download
Pricing
Try Playground

Deployments
  • Cloud (SaaS & Software)
  • On-Premises
  • Kubernetes
  • Docker
Technical Use Cases
  • ASP.NET Sessions
  • ASP.NET Core Sessions
  • Pub/Sub Messaging
  • Real-Time ASP.NET SignalR
  • Internet of Things (IoT)
  • NoSQL Database
  • Stream Processing
  • Microservices
Resources
  • Magazine Articles
  • Third-Party Articles
  • Articles
  • Videos
  • Whitepapers
  • Shows
  • Talks
  • Blogs
  • Docs
Customer Case Studies
  • Testimonials
  • Customers
Support
  • Schedule a Demo
  • Forum (Google Groups)
  • Tips
Company
  • Leadership
  • Partners
  • News
  • Events
  • Careers
Contact Us

  • EnglishChinese (Simplified)FrenchGermanItalianJapaneseKoreanPortugueseSpanish

  • Contact Us
  •  
  • Sitemap
  •  
  • Terms of Use
  •  
  • Privacy Policy
© Copyright Alachisoft 2002 - . All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top