Results 1 to 4 of 4

Thread: Process to select a particular NIC

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Apr 2009
    Posts
    18

    Process to select a particular NIC

    Using winsock, what command do you have to use, to specify which local adapter you use?

    For example, I have two nic adapters, 1 WAN, and 1 LAN

    Already assigned IP from windows

    Wan 100.0.0.98

    Lan 100.0.1.98

    I would like to use the WAN in one instance, and the LAN in another instance.

    I was figureing to need to use two winsock, and binding the ipaddress, but Ive had no luck.

    FWIW I found this string

    Socket.LocalPort = PortToSendFromHere

    With no luck
    Last edited by rebelchevy02; Apr 21st, 2009 at 10:25 PM.

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Apr 2009
    Posts
    18

    Re: Process to select a particular NIC

    If both cards are connected, it uses the first card. If you only have one card connected, it uses the connected card. I would like to be able to send seperate data from each card?

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Apr 2009
    Posts
    18

    Re: Process to select a particular NIC

    So am I asking the dumbest question in the world? Or isnt anyone sure how to send and receive from a certain ethernet card?

  4. #4

    Thread Starter
    Junior Member
    Join Date
    Apr 2009
    Posts
    18

    Re: Process to select a particular NIC

    40 views, and still no ideas?

    Its easy in serial communications, you select which com port you use. What is the equivilent for selecting which ethernet card you use?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width