If I have more than 1 network adapters (ethernet, dial-up, etc...) how do I get all their IP addresses so I can Winsock.Bind them? I need to bind my Winsock control to my dial-up adapter, but it defaults to my ethernet card.
Printable View
If I have more than 1 network adapters (ethernet, dial-up, etc...) how do I get all their IP addresses so I can Winsock.Bind them? I need to bind my Winsock control to my dial-up adapter, but it defaults to my ethernet card.
Do you need to access the one that is connected to the internet, is that the real problem?
I've seen from other posts here that you connect to a www site (through the winsock control), and the IP address of the Winsock control is automatically set to the one that is connected to the internet.
Yeah. I need the one that's connected to the internet. Does that mean that I have to connect my Winsock to any internet website or service and it will be automatically bound to the internet serving adapter?
yes, from what I understand, that is what happens
What if I want my app to choose between several IPs for which adapter to use?