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
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?
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?
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?