Configuring WebSocket Port in Standalone Environment

  • Last update:April 24, 2026
  • Overview

    Version

    Report Server Version

    11.0

    Application Scenario

    This document introduces how to configure WebSocket ports in a standalone environment.

    iconNote: 

    Starting from the FineReport project of V11.0.2 and later versions, a container-native WebSocket solution has been added. You are advised to first check if the Container-Native WebSocket Solution can be used.

    No user operation, manual configuration, or additional port is required. The system automatically uses the WebSocket implementation built into the web container for connection, and the WebSocket connection reuses the HTTP port.

    Example

    Modifying Field Values

    You (the super admin) can modify the WebSocket port through the FINE_CONF_ENTITY Visualization Configuration plugin. The settings take effect after you restart the server.

    iconNote: 
    For details about how to modify field values in FineDB database tables, see FINE_CONF_ENTITY  Visualization Configuration.
    PortJAR PackageIDDefault ValueValue RangeMulti-Value Support

    WebSocket port

    /

    WebSocketConfig.port

    ["38888", "39888"]

    An array of ports: ["Port number 1", "Port number 2"]

    All port numbers should fall within the range (1024, 65535].

    Supported

    WebSocket forwarding port

    Dated before 2019-11-08

    WebSocketConfig.requestPort

    38889

    Supported

    Dated after 2019-11-08

    WebSocketConfig.requestPorts

    38889

    Supported

    Notes for port configuration:

    1. The port number ranges from 1024 (excluded) to 65535. Separate multiple values with commas (,), for example, [Port number 1, Port number 2, Port number 3].

    2. You are advised to configure multiple values for the WebSocket port as backups to prevent port conflicts when multiple projects are deployed on a single server.

    3. Do not set the port number to 3389 (which is for remote server connection).

    5. Do not set the WebSocket port and WebSocket forwarding port to the same port number.

    5. If there are trailing spaces in WebSocketConfig.port, WebSocketConfig.requestPort, and WebSocketConfig.requestPorts, the configuration will not take effect.

    6. The parameters WebSocketConfig.port, WebSocketConfig.requestPort, and WebSocketConfig.requestPorts are case-sensitive. Wrong capitalization will prevent the configuration from taking effect.

    7. WebSocketConfig.requestPort and WebSocketConfig.requestPorts must not coexist in the fine_conf_entity table; otherwise, errors will occur.

    Opening Ports

    • If the firewall is enabled, you can either disable it or open the specific port.

    • If the cloud server uses security groups or similar access controls, open the required ports to external traffic.

    Restarting the Project

    Restart the FineReport project.

    When restarting the project, kill the running project processes, wait 2 minutes for ports to be released, and then restart the project. Otherwise, the restart may fail.

    Effect Preview

    The report server listens for connections in the following order: WebSocket port >> WebSocket forwarding port. That is, with default ports, 38888, 39888, and 38889 are tried in sequence.

    • If a port is successfully bound, the report server will stop trying other ports.

    2.4.png

    • If none of the configured ports can be bound to the system server, the deployment wizard will open to guide you through modifying the listening port list. Related functions will be affected during this time.

    • In this case, reconfigure the WebSocket port and WebSocket forwarding port until an available port is found.


    Attachment List


    Theme: Decision-making Platform
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy