LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

10 Second TCP Connection Time Win10 -> LVRT

Solved!
Go to solution

I am attempting to establish a TCP connection from a Windows 10 client (LabVIEW 2020) to an sbRIO-9603 (LabVIEW RT 2020). It always takes ten seconds. If I move the server from the sbRIO to Windows, the same action takes a couple of milliseconds. The network connection is through static IP addresses on both sides over a dedicated ethernet connection. I have attached the project below. Any ideas on how to speed this connection up?

 

Note that I have found a couple of instances of similar behavior on the internet, but no answers that made any difference.

 

My host computer is a Lenovo P53 laptop with an i9-9880H CPU, 16GB of RAM, and 1.5TB of SSD, 3/4 of which is empty. CPU usage is low while this is occurring. I am guessing a timeout somewhere is to blame.

 

And please do not tell me to use any proprietary NI networking protocols. This is a test for code which will connect to a C# application running on Windows, so must use TCP.

0 Kudos
Message 1 of 3
(2,064 Views)
Solution
Accepted by topic author DGrayEOS

Turned out to be an easy fix. The root cause was a DNS timeout. I set the DNS server and gateway addresses on the board to 0.0.0.0 and the problem went away. The connect time went from 10s to 2ms.

Message 2 of 3
(1,974 Views)
Solution
Accepted by topic author DGrayEOS

There is an even easier solution. The TCP Listen.vi has a boolean input resolve remote address (T). If you set this to false, no more timeout.

 

 

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