Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI
This Document is not yet Rated  Rate this Document

Can I Use DataSocket on a Machine That Has Two Ethernet Cards?

Primary Software: Other NI Software>>DataSocket
Primary Software Version: 4.2
Primary Software Fixed Version: N/A
Secondary Software: N/A

Problem: I have a computer that has two ethernet cards, and I would like to communicate via DataSocket to some other machines. How can I control which ethernet card is being used when doing my communication?

Solution: DataSocket communication is 'client-side' controlled. Therefore, a good solution for controlling which ethernet card is being used is to setup the DataSocket server on the machine with both ethernet cards. The server will respond to queries from clients on both IP addresses.

To control which IP address (ethernet card) is being used, simply refer to the unique IP address in the DataSocket functions (Open Connection, Read, Write, etc.) on the clients, and the traffic will be routed through that ethernet card. (See image below)




Related Links:

Attachments:


DataSocket.GIF


Report Date: 03/15/2004
Last Updated: 04/21/2006
Document ID: 37E7KQI3

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
  1 2 3 4 5
Please Contact NI for all product and support inquiries.submit