• Products
  • Solutions
  • Customers
  • Resources
  • Company
  • Pricing
  • Download
Try Playground
  • Management Center
  • Set-CacheServerPublicIP
Show / Hide Table of Contents
  • Command-Line Interface
  • Cmdlets in Different Editions
  • PowerShell on Windows
    • Setting Up PowerShell Environment
    • Install PowerShell without NCache Installation
  • Install-NCacheModule
  • Client Management
    • Add-ClientNode
    • Remove-ClientNode
    • Add-ClientNodeSecurity
  • Cache Management
    • New-Cache
    • Start-Cache
    • Stop-Cache
    • Set-CacheConfiguration
    • Export-CacheData
    • Export-CacheKeys
    • Export-CacheConfiguration
    • Get-CacheCount
    • Clear-Cache
    • Remove-Cache
    • Set-NCServiceConfigSetting
  • Client Cache
    • New-ClientCache
    • Add-ClientCacheRefDatatype
    • Remove-ClientCacheRefDatatype
    • Remove-ClientCache
  • Node Management
    • Add-Node
    • Remove-Node
  • Query Index
    • Add-QueryIndex
    • Remove-QueryIndex
  • Loader & Refresher
    • Add-LoaderDataSet
    • Invoke-RefresherDataset
    • Remove-LoaderDataSet
    • Add-StartupLoader
    • Remove-StartupLoader
  • Data Source Providers
    • Add-BackingSource
    • Remove-BackingSource
  • Custom Dependency
    • Add-CustomDependency
    • Remove-CustomDependency
  • Pub/Sub Messaging
    • Get-Topics
  • Bridge
    • New-Bridge
    • Remove-Bridge
    • Add-BridgeNode
    • Remove-BridgeNode
    • Add-BridgeCache
    • Remove-BridgeCache
    • Start-Bridge
    • Stop-Bridge
    • Set-BridgeCacheMode
    • Start-BridgeStateTransfer
  • Mapreduce
    • Add-MapReduce
  • Compact Serialization
    • Add-CompactType
    • Remove-CompactType
    • Add-PortableType
    • Remove-PortableType
  • Security
    • Add-NCacheUserOrGroup
    • Remove-NCacheUserOrGroup
    • Enable-NCacheSecurity
    • Disable-NCacheSecurity
    • Enable-NCacheTLS
    • Disable-NCacheTLS
    • Enable-NCEncryption
    • Disable-NCEncryption
  • Data Persistence
    • Suspend-NCacheDataPersistence
    • Resume-NCacheDataPersistence
  • Monitoring
    • Get-Caches
    • Get-CacheLogs
    • Get-CacheLogsList
    • Get-ConnectedClients
    • Get-CacheClientStatistics
    • Get-CacheServerStatistics
    • Add-TestData
    • Test-Stress
    • Get-ClusterHealth
    • New-MemoryDump
    • Get-MemoryDumpList
    • Send-MemoryDump
    • Remove-MemoryDump
    • Measure-CachePerformance
    • Invoke-ServerLogger
    • Import-CacheData
  • Management Center
    • Start-NCacheManagementCenter
    • Stop-NCacheManagementCenter
    • Set-CacheServerPublicIP
  • NCache Playground
    • Start-NCachePlaygroundProcess
    • Stop-NCachePlaygroundProcess
  • NCache Registration
    • Register-NCacheEvaluation
    • Register-NCache
    • Get-NCacheVersion
    • Unregister-NCache

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 feature is also available in NCache Professional.

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 of Set-CacheServerPublicIP

  • 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 of Set-CacheServerPublicIP

  • 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. -
In This Article
  • Examples of Set-CacheServerPublicIP
  • Properties
  • Examples of Set-CacheServerPublicIP
  • Properties

Contact Us

PHONE

+1 (214) 764-6933   (US)

+44 20 7993 8327   (UK)

 
EMAIL

sales@alachisoft.com

support@alachisoft.com

NCache
  • NCache Enterprise
  • NCache Professional
  • 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 - 2025. All rights reserved. NCache is a registered trademark of Diyatech Corp.
Back to top