|
-
Apr 21st, 2009, 09:42 PM
#1
Thread Starter
Junior Member
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.
-
Apr 22nd, 2009, 06:14 AM
#2
Thread Starter
Junior Member
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?
-
Apr 24th, 2009, 04:40 PM
#3
Thread Starter
Junior Member
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?
-
Apr 29th, 2009, 01:26 PM
#4
Thread Starter
Junior Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|