Contents

Configuring a Custom Port Web Application in NetScaler

Step-by-Step Guide to Creating a Service and Load Balancing VIP for Web Applications on Custom Ports

Website Visitors:

NetScaler offers flexible load-balancing configurations to support web applications that use custom ports. Configuring NetScaler to handle a web application listening on a custom port, such as 1234, requires setting up a service or service group for that port and creating a load balancing virtual IP (VIP) associated with it. This guide walks through each step.

1. Prerequisites

  • Access to NetScaler management console
  • Knowledge of the IP address and custom port (e.g., 1234) of the web application
  • Required privileges to create services and load balancing configurations

2. Understanding Key Components

  • Service: Defines a single backend server that handles traffic.
  • Service Group: Combines multiple servers to distribute traffic evenly.
  • Load Balancing VIP: A virtual IP address clients connect to; it forwards requests to backend services or service groups.

3. Configuring a Service for the Custom Port

Steps:

  • Log in to NetScaler’s web-based management console.

  • Navigate to Traffic Management > Load Balancing > Services.

  • Click Add to create a new service.

  • Service Details:

    • Service Name: Enter a descriptive name (e.g., MyApp_CustomPort_1234).
    • Protocol: Select the appropriate protocol for your application (e.g., HTTP, HTTPS).
    • IP Address: Enter the backend server’s IP address.
    • Port: Specify the custom port (e.g., 1234).
  • Click Create to save the service configuration.

4. Creating a Service Group for the Custom Port (Optional)

If your application runs on multiple servers, you can use a service group to streamline load balancing.

Steps:

  • Go to Traffic Management > Load Balancing > Service Groups.

  • Click Add to create a new service group.

  • Service Group Details:

    • Service Group Name: Name it appropriately (e.g., MyApp_SG_1234).
    • Protocol: Select the protocol matching the service.
  • Add servers to the service group by specifying:

    • Server IP: Enter each server’s IP address.
    • Port: Use the custom port (e.g., 1234).
  • Click Create once all servers are added.

5. Setting Up a Load Balanced VIP Using the Service or Service Group

Now, create a load balancing VIP to direct traffic to the configured service or service group.

Steps:

  • Navigate to Traffic Management > Load Balancing > Virtual Servers.

  • Click Add to create a new virtual server (VIP).

  • VIP Details:

    • Virtual Server Name: Give it a descriptive name (e.g., LB_VIP_MyApp_1234).
    • Protocol: Choose the same protocol selected earlier (HTTP or HTTPS).
    • IP Address Type: Select IP if using a specific IP or FQDN for DNS-based VIPs.
    • IP Address: Specify the VIP address that clients will use.
    • Port: Enter the custom port (e.g., 1234).
  • Binding Service/Service Group:

    • In the Service and Service Group Binding section, bind either:
      • Service: If you have created service in step 3, select the service.
      • Service Group: If you have created service group in step 4, select the service group.

      Only service or service group should be added to the vip.

  • Optional Advanced Settings:

    • Configure health checks, persistence, and other policies as needed.
  • Click Create to finalize the VIP configuration.

6. Verifying the Configuration

  • Return to Traffic Management > Load Balancing > Virtual Servers.
  • Ensure the new VIP is showing as UP in the State column.
  • Test connectivity by navigating to the VIP IP address and port to confirm proper traffic redirection.

Summary

This setup ensures that your web application on a custom port like 1234 is fully configured for load balancing in NetScaler.

Your inbox needs more Infra & DevOps insights.

Subscribe to get our latest content by email.