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 4
(3,846 Views)

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

 

 

========================
=== Engineer Ambiguously ===
========================
Message 2 of 4
(3,806 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 4
(3,792 Views)

I’ve been working with LabVIEW shared variables for a bit, and I’ve run into a port forwarding issue I can’t quite figure out. Setup is pretty simple: I have a server PC and a client PC, and I’m trying to get them to communicate over the internet using shared variables. It works fine when both machines are publicly accessible, but things break when I put the client behind a router/NAT. I tried forwarding port 2324 on the router and then accessing it like IP:2324, but it still doesn’t work. I’m not even sure if 2324 is the correct port for shared variables in my setup. Is there a way to check what exact port LabVIEW shared variables are actually using, or a better way to handle this kind of setup?

0 Kudos
Message 4 of 4
(26 Views)