LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP communication error56

Hi there,

  I've used built in example (Simple TCP server and client) with a Windows based computer and a CentOS based computer trying to implement TCP communication. In my case, it worked when I used Windows as client and CentOS as server. However, error 56 appeared if I used Windows as server and CentOS as client. Did anybody also get into this situation?

  p.s. I've turn off the firewall of both computers and they can ping to each other.

0 Kudos
Message 1 of 4
(2,057 Views)

check if the necessary ports are open at both sides. Another thing to keep in mind is that LabVIEW uses Big-Endian format whereas most of the other software uses Little-Endian. So you have to rearrange the bytes at LabVIEW side, this can be easily done though options available in flatten to /unflatten from string node in LabVIEW.

-----------------------------------------------------------------------------------------------------------------------------
Waiting For the inner calling 🙂


0 Kudos
Message 2 of 4
(2,030 Views)

@djac91 wrote:

check if the necessary ports are open at both sides. Another thing to keep in mind is that LabVIEW uses Big-Endian format whereas most of the other software uses Little-Endian. So you have to rearrange the bytes at LabVIEW side, this can be easily done though options available in flatten to /unflatten from string node in LabVIEW.


When communicating LabVIEW to LabVIEW there is no need to worry about the byte ordering even when on two different OSs such as Linux and Windows. This does become an issue when communicating between servers/clients written in other languages.

 

As for the OP, what port are you using for your server? Are you sure it is available for use? Have you checked the settings in your virus scanner? LabVIEW itself has no issues communicating between platforms. Where are you getting your timeout error? Is it on the open, write or read?



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
0 Kudos
Message 3 of 4
(2,001 Views)

Thanks for reply!

I found that the connection has been established and the data from server(Windows) has been transmitted to the client(CentOS).

However, client closed the connection so that server couldn't read the return value.

Perhaps there are some issue with my CentOS?

 

The attached file shows the port I used and error message I got.

Thanks again : )

0 Kudos
Message 4 of 4
(1,973 Views)