WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Get IP Address

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

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
File Created: 1999:04:15:16:17:38
Last Updated: 1999:04:15:16:17:38