LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Shared variable and port forwarding

Hi guys,

 

I have been working on the shared variable in LabVIEW for a little while. I just encountered an issue with port forwarding of the shared variable. I have been looking for the solution for a while but I have not yet managed to solve the problem.

 

I have two PCs, a server and a client, and I want to make them communicate with each other over the internet.  It is successful with the shared variable when both of the computers are publicly accessible.

 

However, for some reason, I wanna put one of the client pc behind a router. In other words, the client pc is in a subnet and the router is publicly accessible.

 

The solution I found is: 

1. Change the setting of the NAT of the router with specific port 2324 for shared variable

2. Add the port to the IP address. For example, 120.157.XXX.XXX:2324

 

But it did not work for my program and I am not sure the reason why. I wonder whether I used the wrong port for the shared variable. How can I find and confirm the port used by the shared variable in my program?

 

 

0 Kudos
Message 1 of 3
(3,115 Views)

This Configuring Software and Hardware Firewalls to Support National Instruments Products whitepaper may have your answer...

 

 

========================
=== Engineer Ambiguously ===
========================
Message 2 of 3
(3,075 Views)

 Thanks RTSLVU,

 

I just have a following up question about the ports been used. In the link above, there are multiple TCP ports used by the shared variable. Is there a way that I can find the port been used?

 

When I mentioned TCP port 2324, I actually mean TCP port 2343.

 

ports.PNG

 

0 Kudos
Message 3 of 3
(3,061 Views)