LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

TCP Server with multiple LAN adapter

Hi everyone!

I have the following problem:

Assume that you have 2 or more LAN adapter (phisical or virtual) on your
system.
All the adapters have a different subnet mask.

Now, if you run the CVI TCP library server function "RegisterTCPServer" you
can specify only the port number but not what adapter the server will act
on.
The same problem occours if you call the "GetTCPHostAddr" function: it will
return only the IP address of the first adapter and it's not predictable
what adapter is.

I've alredy implemented a UDP set of functions based on the .fp file I found
in the tech. support area.
In my implementation you can enumerate all the LAN adapters, and you can
choose what adapter the UDP message will use.

So far, the only solution I found is to re-implement all the TCP
function..... 😞

Does anyone have a solution????

Thanks in advance....
--
Pedro / HT


0 Kudos
Message 1 of 2
(3,006 Views)
CVI 7.1 now includes the RegisterTCPServerEx() function, which lets you specify the address of the local NIC. We also provide a GetAllTCPHostAddresses () routine that enumerates all the local IPs your PC is assigned. This functions are part of the TCP library.
Bilal Durrani
NI
0 Kudos
Message 2 of 2
(3,001 Views)