LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I specify an IP address to use when setting up a TCP client/server?

I have 8 ethernet ports on the PC, each with a unique IP address. The goal is to set one IP address as a server and the rest as clients. How do I specify the IP address when registering the TCP server? Is this even possible using the TCP library?

Thank you,
Neil D
Test Engineer
0 Kudos
Message 1 of 3
(2,690 Views)
Hi Neil,

The CVI TCP Library uses the default network card and will use the system's specified default ip address for that card. It does not have any internal or export features to allow the user to choose within CVI. To set a certain network card as the default, follow this link.

You may also consider using other C TCP/IP libraries and/or Windows SDK libraries (WinInet and WinSock) where you have more functionality.

Jeremy L.
National Instruments
Jeremy L.
National Instruments
0 Kudos
Message 2 of 3
(2,690 Views)
The next version of CVI, which is now in beta, allows you to specify an IP number when you register a TCP server. You can still sign up for the beta in ni.com\beta and you can start to develop your application using the beta. The actual release should be out soon.

Luis
NI
0 Kudos
Message 3 of 3
(2,690 Views)