Recommended Firewall Settings When Using Network Streams

Updated Jul 25, 2023

Reported In

Software

  • LabVIEW Datalogging and Supervisory Control Module
  • LabVIEW

Issue Details

  • I am using network streams in my application, what are the recommended firewall settings?
  • Which ports to Network Strams use to communicate?

Solution

The Windows operating system can lock down security that blocks access to protocols that LabVIEW uses. In order to use network streams properly, there are certain processes that need exceptions in your firewall settings:
  • lkads.exe - NI PSP Service Locator
  • LabVIEW.exe - When running a VI that uses network streams in the LabVIEW development environment
  • <standalone application>.exe - When running a standalone executable that uses network streams.
Alternatively, you can open up the range of ports that LogosXT uses for communication. 

Additional Information

Network Streams use TCP port 2343 (default), UDP ports 6000-6010 (default), TCP ports 59110 and above (one port for each application running on the server per the LogosXT configuration). More information in: Configuring Software and Hardware Firewalls to Support National Instruments Products.
 
Note for Windows 7 users: Make sure that each Ethernet adapter you use is set to a "Home" or "Work" setting. If your network is set to Private, it will throw this error:
Error -1950678945 occurred at Create Network Stream Writer Endpoint in Host Side.vi

Possible reason(s):

LabVIEW:  The URL specifies a host name that does not correspond to the local host, but LabVIEW only supports the specified operation on the local host.  You cannot perform the specified operation on a remotely hosted variable or stream endpoint.