LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP error 56

I am running the example VIs Simple Data Client and Simple Data Server. I have two computers connected via ethernet with statically defined IP addresses. Both have Windows firewalls turned off. I type in the IP address of the computer acting as Server in the "Address" field and use the default port of "2055".


If I run the Client on Computer 1 and the Server on Computer 2, I can see the received data on the Client computer. However, if I run the Client on Computer 2 and the Server on Computer 1, I do not get any data and end up with an error 56.

 

Is there some setting I am missing that would cause this only to work one way?

 

Thanks.

0 Kudos
Message 1 of 15
(4,462 Views)
Search here and study first and if it didn't solved ur problem, post back.
0 Kudos
Message 2 of 15
(4,447 Views)

Hi dave,

 

Just the check the time out or the time out what you have specified is not enough for te opration to be completed.

There may a cause of either the reponse is fast in one of the PC so whenever you are running the server on Computer 2 the clinet is waiting for the server to send the data but when you are running the Server on the Computer1 the Clinet would have alreday cmpleted the opreation. So there my be miss match in time. Once you check your time out or increase or decrease the timeouts prallelly in both the server and client. May solve the problem.

Regards
Aks

(Appreciate answers by giving KUDOS)
Hit the stars.............. sky is not the limit.
0 Kudos
Message 3 of 15
(4,434 Views)

Hi Dave

 

When you changed the server and client around, make sure you've entered the IP address of the (new) server in the client vi. An incorrect IP address will give you an error 56. You have have forgotten to change this and the client is trying to connect with the client.

 

Regards,

JChec

0 Kudos
Message 4 of 15
(4,420 Views)

I have not seen a question like this in the forums.

 

Also, I realize that the IP address changes depending on which PC you are using. This is not the problem, because if I type in the wrong IP address I get a different error - overflow - which is to be expected.

0 Kudos
Message 5 of 15
(4,409 Views)

ok, the client is trying to open a connection with the server at the IP address you typed in, so that error should occur after 60 seconds of running the client if it hasn't been able to open a connection with the server. (unless u've changed the timeout in the block diagram). so the client is not seeing the server, but i'm sure you might know that already. how are the 2 computers connected, with a straight cross over cable? what are your IP addresses of the computers?

I've run the examples on my side to see when the error comes up, so far it's only been when I've typed in an address other than my server address

0 Kudos
Message 6 of 15
(4,405 Views)
Right, the error occurs after 60 seconds. I am using a crossover cable. IP addresses are 192.198.0.1 and 192.198.0.2. Also, I am able to ping the other computer at those IP addresses.
0 Kudos
Message 7 of 15
(4,395 Views)

go into tools>>options. in here, select VI Server: configuration. If this is enable, disable this and try

 

JChec

0 Kudos
Message 8 of 15
(4,392 Views)
sorry, I mean disable the TCP/IP check box
0 Kudos
Message 9 of 15
(4,390 Views)
Yes, it's already disabled on both PCs.
0 Kudos
Message 10 of 15
(4,384 Views)