bjustice Posted November 7, 2022 Report Posted November 7, 2022 Question: is it possible to determine the local address and local port selected when using "TCP Open Connection" to connect to a TCP listener? It seems weird to me that the "TCP Wait on Listener" resolves and returns this information, but the TCP Client does not have a way to determine this information. Maybe I'm missing something. To be clear, I'm specifically considering a situation where my computer has multiple NICs. And I'd like to know which NIC is being used. I found a relevant idea exchange thread on asking to allow for LabVIEW to specify which NIC to use. https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Allow-user-to-select-the-which-NIC-to-use-for-network/idi-p/1497368#comments Thanks! Quote
Łukasz Posted November 8, 2022 Report Posted November 8, 2022 (edited) Regarding which port was used it should be possible to get that information from winsock library on Windows. I think the answer can be found here: https://forums.ni.com/t5/LabVIEW/Is-it-possible-to-extract-the-local-port-associated-with-a-TCP/td-p/459672 Edited November 8, 2022 by Łukasz 1 Quote
bjustice Posted November 8, 2022 Author Report Posted November 8, 2022 Thanks for the link, I had not found that forum post! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.