LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

DSC firewall 3rd party

Hi,

 

I am trying to develop app using DSC module. PC1 is LV16 Client and PC2 is 3rd party Server.

Question is "simple"...how to set firewall to communicate the date?

Thanks for your reply!

0 Kudos
Message 1 of 8
(3,777 Views)

Mr. Vasicek,

 

AE KB 3HUD6PUW contains the list of processes you should consider to be whitelisted in you firewall. Plus white paper "Configuring Software and Hardware Firewalls to Support National Instruments Products" summarizes port ranges used for each NI service.

 

Regards

Ondřej K.

NIEE AE

CLA, CTA, CLED
Message 2 of 8
(3,741 Views)

Thank for your reply!

 

I have read the list of NI used ports and tried to do datasocket communication first.

But when I allowed just TCP port 3015 there is still an error. When I allow all range of ports, everything is ok.

I have figured out, that when I have enabled range around port 49000-65000 it works fine. Have someone an explenation and can specify port numbers?

 

Thanks

0 Kudos
Message 3 of 8
(3,727 Views)

Hello,

I believe since you are using DSC to bind opc tags your application uses SVE (Shared Variable Engine) behind the scene. Therefore you need to open ports mentioned in the "Shared Variables and Network Streams" pharagraph of the previously mentioned White-paper.

 

BR,

Ondřej

 

CLA, CTA, CLED
0 Kudos
Message 4 of 8
(3,722 Views)

Hi,

thank you for your reply, unfortunatelly, that didn´t help. DSC is still unable to communicate.

As I have said, I tried to make datasocket communication first and in the list is only TCP port 3015 and....nothing happend.

I use DataSocketSelectURL.vi. I have figured out, to run this VI and see all possible OPC servers, I need to enable also port 49669. Does anyone know why? What are the others ports? Is there any picture of the communication - I mean which service is required when establishing the communication?

Thanks!

0 Kudos
Message 5 of 8
(3,706 Views)

Dears,

for resolution of this problem we used windows tool Netstat at the end. This tool enables to monitor TCP/IP communication. We were able to find out which ports are needed to be enabled in this scenario for different communications and added them to firewall white list to enable full functionality.

49669 - find running OPC servers on subnet

49798 - signal communication ove data socket

51463 - DSC client connection with NI OPC server
53957 - DSC client connection with Matrikon OPC server

 

0 Kudos
Message 6 of 8
(3,680 Views)

That test isn't something I'd cite as a successful test.  You've shown ONE possible configuration.

 

Given the last two are both pretty random numbers and both work by OPC communication (I'm assuming OPC DA), you're showing two ports within the range rather than the range itself.

 

Original poster, we get it.  You've opened up the DataSocket port.  Why do you think that's all that matters?  You're not communicating by DataSocket.  You still need to get the data between the two PCs and that will rely on the communication protocol being used.  As you've brought DSC into the conversation, it's very unlikely you're doing much, if anything, with DataSocket.  You're likely using one of the many communication protocols that's a part of the DSC.  I'd run a google search for the OPC DA protocol to see which ports it is intended to operate within.  This is the most likely way to find that range as those aren't NI specific.  The white paper linked was NI Specific ports.

 

If all you want to do is pass data from server to client via DataSocket, what are you doing with DSC?

Message 7 of 8
(3,672 Views)

I have figured out, that you are right. The configuration of port is probably only ONE of possible configurations...but how I can get the full range of possible ports?

 

I am trying to do connect to OPC server. I would like to use DSC communication, but there is another method using DataSocket, which is probably the simplier way to start this research. Any ideas?

0 Kudos
Message 8 of 8
(3,658 Views)