LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is there a way to know which Ethernet port will be used when running TCP Open?

Hello.

I have several Ethernet ports in my computer, and I am trying to write a VI that sends data from one port to the other (for debugging an issue).  I was planning on using the TCP Open and other TCP VIs, but the TCP Open does not seem to have an input to tell it which local Ethernet port I want to use.

So, is it possible to specify which Ethernet port you want your TCP connection to be open on?  How about UDP?

Thanks,

AlejandroZ
0 Kudos
Message 1 of 4
(2,945 Views)

The TCP Open does have inputs for specifying both local and remote ports.

Message Edited by Dennis Knutson on 08-23-2007 09:52 AM

0 Kudos
Message 2 of 4
(2,941 Views)
I am not sure the local port input really specifies the actual RJ-45 connector you want to use, but rather the "TCP" port, a number such a 3880, and the like.

If you do know that it does allow you to choose the RJ-45 connector, how do you map that u16 to the hardware you want to use?

Thanks,

AlejandroZ
0 Kudos
Message 3 of 4
(2,937 Views)
Port means TCP port. If you want to use a specific nic, then that decision is up to the OS. If each is set for a different subnet, then the OS will choose the one based on the address you use with the TCP Open.
Message 4 of 4
(2,930 Views)