I got two network cards in my computer, how do I specify which one for the OS to use by code ??

thanks for any recommendation.