LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

multiple ethernet (client) ports

I am trying to create a LabWindows program that will run on a pc with 4 ethernet ports. I want to use one of the ethernet ports to connect to the outside world. I want the remaining three ethernet ports to be clients each with a dedicated server attached to it (our proprietary boards). But whenever I try to execute ConnectToTCPServer() it only tries to connect through one of the ethernet ports. How do I direct it to connect through one of the other three? Thank you, Gwen Belt
0 Kudos
Message 1 of 3
(3,665 Views)

I believe that the choice of ethernet interfaces is completely up to the operating system.   You just need to have things

configured in the PC so that the IP address of each server is in a subnet assigned to the proper interface.   

 

Jim

0 Kudos
Message 2 of 3
(3,659 Views)

Hi Gwen,

 

If you're using CVI 7.1 or later, you can use the ConnectToTCPServerEx function, which allows you specify the client port number as a parameter to the function.

 

Luis

0 Kudos
Message 3 of 3
(3,604 Views)