How to Make the RIO Server to Use One TCP Port Consistently for the RT Target

Updated Sep 20, 2023

I have strict firewall settings in my system. Therefore, I am trying to open (provide access) selective ports required for deploying to the FPGA target.

The port number changes randomly everytime the Real-time (RT) system is restarted.

How to define a constant TCP port so that the RIO server will use only one port consistently?

1. The nirio.ini file on the NI Linux RT target can be modified to specify the port of the Remote Procedure Call (RPC) server so that the RIO server will use one port consistently.
  • For linux targets, *.ini file can be found in /var/lib/nirio/ini/nirio.ini
  • For Windows targets, *.ini file can be found within common AppData path /NI-RIO/nirio.ini
2. The following token need to be changed within the .ini file.
[General]
RpcServerPort=11296

Note: If you can't locate the nirio.ini file. You can create the file manually with the INI tokens.