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 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,214 Views)

I had a similar situation a while back, but with only two ethernet cards and using UDP, not TCP. There didn't seem to be an issue. As long as the cards were actually connected up and had IP addresses, the messages found their own way to and from the correct remote machine courtesy of the underlying network transport mechanism provided by the operating system. I did not actually try this with TCP, but I don't see why it should be that different. If you use the correct remote address when calling ConnectToTCPServer() the connection should pass through the appropriate card automatically.

 

JR

0 Kudos
Message 2 of 3
(3,181 Views)
Multiple post. See here
S. Eren BALCI
IMESTEK
0 Kudos
Message 3 of 3
(3,177 Views)