04-18-2018 12:45 PM
Hi all,
I have an application which needs to communicate to 2 different external servers with 2 different IP addresses which are on 2 totally different subnets. So the PC on which my application resides also has 2 network cards/ports.
My question is how can I pick the separate IP addresses of my PC in my LabVIEW code to open separate TCP connections to the two external servers at the same time. (I do need to have the two connections open at the same time).
Thanks for your help!
04-18-2018 01:19 PM
This shouldn't be done in LabVIEW; Windows should handle it if you have setup your network cards right.
For instance, if you have 2 network cards set up as 192.168.0.2 and 192.168.1.2, both with subnet masks of 255.255.255.0, then it should automatically send any traffic on the 192.168.0.X range to the first and 192.168.1.X range to the second, because that's how the mask is set up.
Do you have an internet connection on one or both of these cards? Or is it a 3rd card for the internet, or is it isolated from the internet?