LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tcp open connection from specific IP Address

Hi everybody,

 

In my PXI Chassis, i have 3 NI 8234 Network Cards. I'm trying to get a connection to a server from a specific IP address, like 10.251.56.51 

 

I found a link, describing the issue.

 

http://digital.ni.com/public.nsf/websearch...5E?OpenDocument

When using TCP Open Connection, the operating system decides which network card to use based on the local PC's IP address and the IP address of the computer to which you are attempting to open a connection.

 

Can anybody help me, solving this problem?

 

Thanks

0 Kudos
Message 1 of 2
(2,455 Views)

You can try adding a permanent route on your PC that will direct any traffic to the specified IP address to a specific NIC in the computer. You would use the route command to add the route. The syntax for adding a new route is:

 

  route ADD 157.0.0.0 MASK 255.0.0.0  157.55.80.1 METRIC 3 IF 2
       

You can get the complete help for the command by simply typing "route" at the prompt.



Mark Yedinak
Certified LabVIEW Architect
LabVIEW Champion

"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Message 2 of 2
(2,398 Views)