Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Handle Dual NICs

Keywords: 	 NIC MAC

Question:

I have an NT server with 2 Nic's on different networks. I need to write a Winbatch program that will use a specific IP address using Winsock. Is there a winsock command that will tell it which socket/IP to use/send over?

Answer:

I think it is handled automatically based on the IP address you are trying to communicate with, the IP address of the network card, and your subnet mask.

It it seems like a match, it uses that NIC, otherwise it sends it to the gateway address.


Article ID:   W12345
Filename:   Handling Dual NICs.txt