LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

choosing between multiple network adaptors

Suppose I'm running Labview on a machine with multiple network adaptors (i.e. an ethernet cable and an 802.11B wireless LAN card), connected to different networks. Also suppose I want to communicate over just one of these, for example to a data socket server, and I know which network the data socket server is on. Is there any way to force the communication path, in Labview or in general? My observation is that I can be unable to communicate, and then establish communication by disconnecting the unused network adaptor.
0 Kudos
Message 1 of 4
(3,030 Views)
Your two different networks should have different sub-nets and then the OS will automatically choose whichever nic is connected to the appropriate network when you specify the ip to which you want to connect. If both networks have the same sub-net, then I don't beleive that there is a way to force the OS to choose one nic over an other.
0 Kudos
Message 2 of 4
(3,030 Views)
Thanks for your post. Unfortunately, I would like to connect by hostname rather than by IP address, since the IP address will be dynamic.
0 Kudos
Message 3 of 4
(3,030 Views)
It should still work by hostname as long as the sub-nets are different.
0 Kudos
Message 4 of 4
(3,030 Views)