LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP listen is giving error 56

Its been a week, but i actually found the solution. The solution is here :

https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019Lz2SAE&l=de-DE

 

In there it explains 

  • You can also try navigating to Tools»Options»VI Server and adding * to the Machine Access List by choosing Add at the bottom, entering * in the Machine name/access field, and ensuring that Allow access is selected. However, this will grant all machines access to the target machine.

By doing this, I got access. I found a port by using 0 and service name and finding a open port for program to work.

 

But what still I dont understand is different from the ports which i found is open via cmd window. In cmd window when I typed netstat -ano, it gave me a list of ports which are open and not open. And the port i found through the method above is not in this list. And the port that was open in the list from cmd window, one of the example being 45321 doesnt work also. So why is that? That I still dont understand. But thankfully, I was able to set the program working. 

 

 

0 Kudos
Message 11 of 13
(237 Views)

Are you sure you made a firewall rule to allow incoming TCP on your listening port? You should not need to set up viserver to use TCP primitives!

0 Kudos
Message 12 of 13
(202 Views)

I tried the firewall thing. I even got the support of my IT engineer to help me with opening the firewall of the port and it still didnt work. It only worked with when I set up the VI server machine list with the ip address. 

0 Kudos
Message 13 of 13
(116 Views)