• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 335
  • Last Modified:

How to choose the NIC a software uses to connect to the internet?

Hello experts,

Is there a software or a way to choose or define which NIC a program uses to connect to the internet?

I have both, wireless and ethernet available and I need to use the wireless connection for one software to connect and the ethernet for all the other connections. Can this be done?
  • 4
1 Solution
if you know which port that application uses you can add routing for that port on NIC you want
helppariAuthor Commented:
I know the port. How do I add the routing?
Sorry, you have to know the destination IP address for that application

First you have to enable routing in Windows XP because it is disabled by default.

1. Go to Start -> Run, type regedit, and click on OK
2. Navigate to HKEY_LOCAL_MACHINE \SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
3. Double click on IPEnableRouter and enter value 1

To add route in Windows open cmd (Start -> Run, type cmd, OK)
and something like this if you have the exact IP address

route add NETWORK mask NETMASK GATEWAY metric 10 if 2
(route add mask metric 10 if 2) - interface 2

You don't have to put interface because Windows will choose the right one, but if don't add it

and to add permanent route add -p switch after "route add"
and for port routing you should set marks and it is more complicated, but i only did this in Linux
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Train for your Pen Testing Engineer Certification

Enroll today in this bundle of courses to gain experience in the logistics of pen testing, Linux fundamentals, vulnerability assessments, detecting live systems, and more! This series, valued at $3,000, is free for Premium members, Team Accounts, and Qualified Experts.

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now