Websocket Port is occupied

  • Last update:December 18, 2020
  • I. Overview

    1) A number of functions in the decision-making platform relies on WebSocket.

    2) When the FineReport project is running, it will request connection to WebSocket. An error message as shown below will appear if the connection fails. 

    II. Solution using CentOS 7 as an Example

    1. Open the port for WebSocket

    If you deploy your FineReport project on one server (i.e. rather than a cluster), the default port for WebSocket are 38888, 39888 and 38889. You can try to open the ports one by one until you solve the problem.

    firewall-cmd --zone=public --add-port=38888/tcp --permanent   # Open port 38888 as the example

    firewall-cmd --zone=public --remove-port=38888/tcp --permanent  # Close port 5672firewall-cmd --reload   

    # Bring the configuration to effect at once


    2. Close the firewall

    firewall-cmd --state # Check the status of the firewall

    systemctl stop firewalld.service # Close the firewall

    Note

    • You can set an inbound rule for Windows

    • If you deploy your project on a cloud server, chances are that the connection still fails even if you close the firewall. This is because the service provider does not authorize the ports, and you need to open the 3 ports in the management page of the cloud server.


    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