For most NI services, you can refer to the Configuring Software and Hardware Firewalls to Support National Instruments Products
to find a list of the default TCP and UDP used.
For example, Shared Variables and Network Streams use TCP port 2343, UDP ports 6000-6010, TCP ports 59110 and above by default. You can monitor the exact UDP ports it uses by running netstat command
in command prompt to display active connections.
You can see below that UDP ports 5003,6003,6005, 6006, and 6007 are being used by PID (process ID) of 6360.
The corresponding process to the PID can be found from Task Manager or using the Tasklist command.