LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP/IP communication

Hi everybody!!

 

I'm trying to connect a laptop PC with a PC by TCP/IP in LabVIEW. I am using the Simple Data Client.vi (running on the PC) and Simple data server.vi (running on the laptop) examples that LV provides but I can’t communicate them.

I’ve a short idea about TCP/IP communication, hence I’m using the examples of LV 7.1 According to the examples, I have run the simple data server.vi first and then client.vi but it doesn´t works. The client.vi shows this error:

 

             Error 63 ocurred at the Open Connection Vi in simple data client :

                   The network connection was refused by the server 

 

I have checked the port and the IP address of the server and they are correct. What is happening?

 

Thanks in advance

0 Kudos
Message 1 of 3
(3,198 Views)

Hi,

I think your problem is that you are not connecting 2 computers. From your image (the one you ar attached with the error) I suppouse you are trying to connect the client to a server that has ip address 127.0.0.1. You should know that 127.x.x.x addresses correspond to your own computer and these addresses are used to check if your Ethernet (Internet) Card is working ok. Then you are doing the connection to your own PC both client and server instead to the PC you are running the server vi.

You have to find your correct server address . You can obtain the IP server address this way: start -> programs -> accesories -> system symbol  and write ipconfig. And won't be 127.x.x.x.

Regards,

Jaime Cabrera

NI Applications Engineer

 

 

Regards,

Jaime Cabrera

NI Applications Engineering Spain
0 Kudos
Message 3 of 3
(3,149 Views)