Is there a reliable way in Windows, apart from changing the routing table, to force a newly created socket to use a specific network interface? I understand that bind() to the interface’s IP address does not guarantee this.
Is there a reliable way in Windows, apart from changing the routing table, to
Share
(Ok second time lucky..)
FYI there’s another question here perform connect() on specific network adapter along the same lines…
According to The Cable Guy
So to answer your question (properly, this time) in Windows XP and Windows Server 2003 IP4 no, but for IP6 yes. And for Windows Vista and Windows 2008 yes (except for certain circumstances).
Also from https://forums.codeguru.com/showthread.php?487139-Socket-binding-with-routing-table
Hope that helps!