06-04-2021 04:08 PM
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.
Solved! Go to Solution.
06-09-2021 09:14 AM
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.
06-16-2021 10:06 AM
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.