11-22-2016 08:38 AM
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!
11-23-2016
01:24 AM
- last edited on
08-13-2024
10:22 AM
by
Content Cleaner
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
11-23-2016 09:49 AM
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
11-23-2016 11:30 AM - edited 11-23-2016 11:31 AM
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
11-24-2016 02:04 AM
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!
11-25-2016 07:56 AM - edited 11-25-2016 07:57 AM
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
11-26-2016 04:46 PM
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?
11-28-2016 03:18 AM
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?