Q1.How to modify ports and public IP addresses after deploying Kilolink Server Pro 12/30/2025 / 1399 Problem Background After the deployment of Kilolink Server Pro is completed, it is necessary to modify the port and public IP address Common Troubleshooting Approaches 1. Overview After the deployment of Kilolink Server Pro is completed, if you need to adjust the port (static/dynamic) or public IP, you can configure it through the reinstallation (upgrade) process or modify the configuration file+restart the service. The following scenarios illustrate the operation methods and adapt to different requirements (such as port conflicts, network environment changes). 2. Modify ports and public IP addresses through the reinstallation (upgrade) process (1) Applicable scenarios After the first deployment, the default port needs to be adjusted (such as 80:80, 50000:50001, etc.); Change of public IP address requires re binding of server access address; Synchronize network configuration adjustments when upgrading the system. (2) Operation steps Backup critical data (optional but recommended) If the server already has device configuration and historical data, execute the following command to backup (to avoid reinstallation and loss): #Enter the container (if data needs to be backed up inside the container) docker exec -it kilolinkserver bash #Copy the data directory to the host computer (assuming the backup path of the host computer is/data_mack) cp -rf /data /data_back Execute reinstallation/upgrade commands Start the reinstallation process through the official script (which will trigger port and IP configuration interaction): /bin/bash <( curl -fsSL https://github.com/kiloview/klnk-server/raw/main/install.sh ) Configure ports and public IP addresses Port configuration: When the script prompts that the Web port is for your Web/HTTP accessing KiloLink Server management console., enter the new Web port (such as the default 80:80, which can be changed to 8080); When prompted that Link port is for devices connection..., enter the new Link port (which needs to be an even number, such as the original default 50000:50001, which can be changed to 50010:50011). Public IP configuration: When the script detects that a public IP address needs to be manually configured (such as in a cloud server environment), enter a new public IP address (ensuring that it matches the actual public IP address of the server). Verify that the configuration is effective After reinstalling, access the web interface through the new port (such as http://new public IP: new web port), and check: Whether the device is connected normally (when the original device needs to be re registered, use the new Link port to complete it); Port listening status: Execute netstat tunlp to confirm that the new port (such as 8080, 50010) has been occupied by the kilolinkserver process. 3. By modifying the configuration file and restarting the service (without the need for reinstallation) (1) Applicable scenarios The deployment has been completed and requires quick adjustment of ports/IPs (such as temporary testing environments or small-scale changes); Only modify some ports (such as web access ports and device connection ports). (2) Operation steps (taking modifying web port and public IP as an example) Entering the container environment Execute the command to enter the Kilolink Server Pro container: docker exec -it kilolinkserver bash Modify web port (Nginx configuration) Edit Nginx configuration file: vi /usr/local/openresty/nginx/conf/nginx.conf Find the server {listen 80;...} code snippet, change 80 to a new port (such as 8080), save and exit (press Esc → enter: wq). Modify public IP (platform configuration) Edit platform configuration file: vi /data/configs/platform.conf Find the PLATFORM-IP field, change the value to the new public IP (such as PLATFORM-IP=10.0.0.100), save and exit. Restart the service to make the configuration effective Restart Nginx service: /usr/local/openresty/nginx/sbin/nginx -s reload Restart the Kilolin Server Pro container (host execution): docker restart kilolinkserver Verify the modification results Visit the new address: http://New public IP: New web port, confirm that the web interface can be logged in; Check device connection: Register the device through the new Link port (such as 50010) and confirm that the device can be connected to management normally. 4.Common problems and precautions (1) After modifying the port, the device cannot connect Reason: Link ports need to be even (such as 50000), and klnkfwdportr needs to be Link port+1 (such as 50001). Failure to synchronize and modify the configuration file will result in device connection failure. Solution: Check the klnkport and klnkfwdportr fields in/data/config/platform.exe to ensure that klnkfwdportr=klnkport+1 is met, modify and restart the service. (2) After modifying the public IP, the web interface cannot be accessed Reason: The firewall has not opened new ports (such as cloud server security group, server local firewall). solve: Cloud servers (such as AWS and Alibaba Cloud): Add inbound rules in the security group and open new web ports (such as 8080) and link ports (such as 50010); Local server: Execute firewall cmd -- permanent -- add port=new port/tcp (or udp), and firewall cmd -- reload takes effect. (3) Can the dynamic port range be modified? Dynamic ports (such as 30000:30300, 5960:6500, etc.) are reserved media streaming ports for the system and are not recommended for manual modification (as it may cause abnormal transmission of audio and video streams and NDI streams). If adjustments are needed, code level configurations need to be synchronously modified (high-risk, limited to professional scenarios). 5. Summary There are two paths for modifying ports and public IP addresses in Kilolink Server Pro: Reinstall/Upgrade Process: Suitable for large-scale configuration adjustments (such as initial deployment optimization, cross version upgrades), requiring interactive configuration of ports and IP addresses; Modify configuration file+restart: suitable for small-scale changes (such as temporary port adjustments), requiring entering the container to edit Nginx and platform configuration files. The operation core needs to pay attention to port correlation (such as Link port and klnkfwdportr), open new ports in the firewall, and ensure normal device connection and web access. Previous:Q10.What should I do if P1P2 cannot connect to the Kilolin Server Pro platform Next:Q2 Deployment Requirements for Kilolink Server Pro