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

Set-CacheServerPublicIP

This PowerShell cmdlet sets a public IPv4 address for a cache server within an NCache cluster. It is used when clients are unable to connect to cache servers using their private IP addresses, requiring communication over a public network.

Note

This cmdlet sets the public IP using the <add key="NCacheServer.PublicIP" value="" /> tag in the service config file at %NCHOME%\bin\service\Alachisoft.NCache.Service.dll.config in Windows and at /opt/bin/service/Alachisoft.NCache.Daemon.dll.config in Linux.

  • Windows PowerShell
  • Linux CLI
Set-CacheServerPublicIP -PublicIP [-Server] [-Credentials] [-Port] [-NoLogo]

Examples

  • This command sets the public IPv4 address 20.200.20.11 for the cache server 192.168.1.10 (private IP).
Set-CacheServerPublicIP -Server 192.168.1.10 -PublicIP 20.200.20.11
  • This command sets the public IPv4 address 20.200.20.12 for the cache server 192.168.1.20 (private IP), using credentials for authentication.
Set-CacheServerPublicIP -Server 192.168.1.20 -PublicIP 20.200.20.12 -Credentials(Get-Credential john_smith)
  • This command sets the public IPv4 address 20.200.20.12 for the cache server 192.168.1.30 (private IP), while suppressing the logo banner output.
Set-CacheServerPublicIP -Server 192.168.1.30 -PublicIP 20.200.20.12 -NoLogo

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-PublicIP* <String> Specifies the public IPv4 address to assign to the cache server. Only IPv4 addresses are supported. -
-Server <String> Specifies the private IP address of the cache server where the public IP should be set. -
-Credentials <pscredential> Specifies credentials for authentication when setting the public IP on a remote cache server. -
-Port <Integer> Specifies the server port where NCache Service is listening. 8250
-NoLogo <SwitchParameter> Suppresses the display of the logo banner when executing the command. False
set-cacheserverpublicip -publicip [-server] [-userid] [-password] [-port] [-nologo]

Examples

  • This command sets the public IPv4 address 20.200.20.11 for the cache server 192.168.1.10 (private IP).
set-cacheserverpublicip -server 192.168.1.10 -publicip 20.200.20.11
  • This command sets the public IPv4 address 20.200.20.12 for the cache server 192.168.1.20 (private IP), using userid and password for authentication.
set-cacheserverpublicip -server 192.168.1.20 -publicip 20.200.20.12 -userid john_smith -password pass123
  • This command sets the public IPv4 address 20.200.20.12 for the cache server 192.168.1.30 (private IP), while suppressing the logo banner output.
set-cacheserverpublicip -server 192.168.1.30 -publicip 20.200.20.12 -nologo

Properties

Note

The parameters with asterisk (*) on their names are the required parameters and the rest are optional.

Parameters Data Types Description Default Value
-publicip* <String> Specifies the public IPv4 address to assign to the cache server. Only IPv4 addresses are supported. -
-server <String> Specifies the private ip address of the cache server where the public ip should be set. -
-nologo <SwitchParameter> Suppresses the display of the logo banner when executing the command. False
-port <Integer> Specifies the server port where the NCache Service is listening. 8250
-userid <String> Specifies the user id that is used to authorize the user if security is enabled on the cache server. This user id must be same as the active directory user credentials. -
-password <String> Specifies the password for user authorization if security is enabled on cache server. This password must be the same as the active directory password. -

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Community
  • 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