LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

ConnectToTCPServer Failure in Windows7

I am using "Measurement Studio Version 6.0, Labwindows/CVI" for my TcpIP Server and Client Program.
It works very well in the Windows XP circumstance using below functions. 
 
But the function ConnectToTCPServer fails with error message like below, whereas RegisterTCPServer works successfully at Windows XP and Windows 7 OS.
 
I tried ConnectToTCPServer function at three computer, which results in same error message.
 
I am looking for anyone like an angel who can help me. Thanks.
 
 
<server side>
RegisterTCPServer(6000, Server1Callback, 0);
 
<client side>
unsigned int handle;
ConnectToTCPServer (&handle, 6000, "172.29.24.182", ClientCallback,NULL, 5000);
 
<error message at client side>
Non-fatal run-time error
Library function error (return value == -2 [0xfffffffe]).
Unable to establish conneciton
 
0 Kudos
Message 1 of 2
(4,153 Views)

Hi seong-yeon

 

Did you confirmed if that port is available? Also try the computer name as the server host name in ConnectToTCPServer.

 

Do you have all firewalls disabled? You can confirm with your IT department if there is any network security installed.

 

This article discuss how to build applications with the TCP Support library and offers a couple of examples you can try to test the connection between the client and the server.

 

Regards 

Chris S.
0 Kudos
Message 2 of 2
(4,115 Views)