I come to you with a problem to communicate two computers through TCP using the TCP subvi's, the problem is that both the server and the client vi's(attached) work well on the same computer (using "localhost" as the address) but when I connect two computers though ethernet it just doesn´t work even when I test the connection between the computers making "Ping" with the CMD terminal.
Does anyone have an idea of what is happening?
Thanks from now, I'd appreciate your help.
PS: VI's are in Labview 14. Both computers are running on windows 10
Solved! Go to Solution.
Your client needs either a service name or a port number in order to connect to the server on the remote PC. In the code you posted there is no service name in the TCP server. It actually doesn't work on my computer without that. Now, there are many other reasons you may not be able to connect even if ping works. One common problem is if you have any firewalls running. That would block the communications. Several ports would need to be open. The NI Name Service Locator port would need to be open on the firewall. That uses port 3580. You would also need to make sure that the port for your server (port 2055 in the code you posted) was open as well. Depending on the network, there could be other firewalls besides the one on your PCs that could block traffic.
That was awesome Mark_Yedinak, I just disabled the firewall while running the vi’s and everything worked well. It’s incredible how small details could do a big matter. Thanks a lot.