Company Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Configuring Firewalls and Network Address Translating Routers for Shared Variables

LabVIEW 8.2 Help
August 2006

NI Part Number:
371361B-01

»View Product Info

You must configure firewalls and Network Address Translating (NAT) routers if you want to transmit network-published shared variables through them. If you do not correctly configure the firewall or router, network-published shared variables might not work.

Network-published shared variable servers use the UDP port 2343 and a range of UDP ports beginning with port 6000. The number of ports above 6000 that the network-published shared variable servers use depends on the number of servers running on the computer. Network-published shared variable clients use a range of UDP ports beginning with port 5000. The number of ports above 5000 that the network-published shared variable clients use depends on the number of client applications running on the computer. To find out the number of ports the server or client uses, first use TCP without the firewall configured to find out how many ports you need.

Complete the following steps to allow clients outside a firewall to connect to a server inside the firewall. The exact steps for configuring the firewall depend on the specific firewall you use. Refer to the documentation for the firewall for specific instructions about opening ports.

  1. Open UDP port 2343 for incoming packets.
  2. Open the UDP port range from 6000 to 6010 for incoming packets.

You also can allow clients inside a firewall to connect to a server outside the firewall. Some firewalls automatically transmit incoming packets without any configuration. If the firewall does not open the ports automatically, open the UDP port range from 5000 to 5010 for incoming packets.

Complete the following steps to allow clients outside a NAT router to connect to a server inside the router. The exact steps for configuring the router depend on the specific router you use. Refer to the documentation for the router for specific instructions about forwarding ports. Only one computer inside the router can function as a server.

  1. Forward UDP port 2343 to the computer running the server.
  2. Forward the UDP port range from 6000 to 6010 to the computer running the server.

You also can allow clients inside a NAT router to connect to a server outside the router. Some routers automatically forward ports without any configuration. If the router does not forward the ports automatically, forward the UDP port range from 5000 to 5010 to the computer running the client.

Note  If you deploy a network variable to a Windows machine with the Windows firewall enabled, you must add \National Instruments\Shared\Tagger\tagsrv.exe and \windows\system32\lkads.exe to the Windows firewall exception list in order to read or write to the variable hosted on the machine.

Resources


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit