How to enable Public IP and Private IP for Spotfire server?

How to enable Public IP and Private IP for Spotfire server?

book

Article ID: KB0075439

calendar_today

Updated On:

Products Versions
Spotfire Server All Versions

Description

This article explains how we can enable Public IP and Private IP in Spotfire server's tomcat configuration.

Environment

All Supported OS

Resolution

By default, Tomcat listen on all interfaces, so if you have both a public and private IP on different interfaces it should work fine.

To configure this you need to perform changes to the standard Tomcat connector in server.xml, as documented here:  https://tomcat.apache.org/tomcat-9.0-doc/config/http.html

Under 'Standard Implementation' section in above link, check the "address" attribute.

Here is the snippet :
------------ 
address:

For servers with more than one IP address, this attribute specifies which address will be used for listening on the specified port. By default, the connector will listen all local addresses. Unless the JVM is configured otherwise using system properties, the Java based connectors (NIO, NIO2) will listen on both IPv4 and IPv6 addresses when configured with either 0.0.0.0 or ::. The APR/native connector will only listen on IPv4 addresses if configured with 0.0.0.0 and will listen on IPv6 addresses (and optionally IPv4 addresses depending on the setting of ipv6v6only) if configured with ::.
-------------

You can add this address attribute to the  below standard Tomcat connector in server.xml as per your requirement:
<Connector port="80"
               maxHttpHeaderSize="65536"
               connectionTimeout="30000"
               address="127.0.0.1"
               enableLookups="false"
               URIEncoding="UTF-8"
               disableUploadTimeout="true"
               server="TIBCO Spotfire Server"
               compression="on"        
 compressibleMimeType="text/html,text/xml,text/plain,text/css,application/json,application/javascript,image/svg+xml,application/xml"
               acceptorThreadCount="2"
               keepAliveTimeout="30000"
               maxKeepAliveRequests="-1"
               maxThreads="2000" />

 

Issue/Introduction

How to enable Public IP and Private IP for Spotfire server?