Solved

Application Chooses Wrong IP as default IP

Posted on 2004-10-18
8
260 Views
Last Modified: 2010-04-10
I have two Ethernet Adapters each with unique Ip address that are assigned from two separate networks. I have an application that starts up and chooses a specific IP.  Currently it is grabing the IP associated with Ethernet Adapter 2 and I need it to grab the IP associated with Ethernet Adapter 1. Is there a way in Windows XP to ensure that the applications will only associate with the first Ethernet adapter?
0
Comment
Question by:infutech
8 Comments
 
LVL 49

Expert Comment

by:sunray_2003
ID: 12340666
0
 
LVL 49

Expert Comment

by:sunray_2003
ID: 12340708
Try this and see

go to network connection and LAN properties of one of the connection
go to tcp/ip properties and then go to advanced
uncheck "automatic metric" and assign the number 1

give a lower number for ethernet adapter 2 ....

check if that would help
0
 
LVL 5

Expert Comment

by:NashvilleGuitarPicker
ID: 12340714
Which program(s) is/are giving you problems?  This is dependant on the programming of the specific application, and some may have workarounds.  Since many programs will pick the first card, you may have to work around this by swapping IP address settings and switching cables between your "first" card and your "second" card.  Of course then you will run into problems with programs that assume you wanted to use your last card.

I am not sure how XP determines which card is listed first, but it may depend on the slot order in your PC, assuming that it is not built-in to the motherboard.  Also, it might be sorted by vendor ID, MAC address, or something like that.  You MIGHT be able to delete the first card, and have it redetect as a second card.

- Will
0
 
LVL 2

Expert Comment

by:Martone
ID: 12340908
what about the application you are using?  have you looked in there to see if you can change which ip it uses?  what application is it?

martone
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 8

Accepted Solution

by:
cooljai1 earned 500 total points
ID: 12340976
What about changing the priority of the NICs so that the second NIc is given the priority?
If that is what you want, do this,
Open the Network Communications folder, choose the Advanced menu at the top. Choose advanced settings. On this screen, you can list your network adapters (and the services that use them) in order of priority (which to use or check first when contacting a network).
0
 
LVL 6

Expert Comment

by:vand
ID: 12341099
You can also try making the network associated with adapter 1 the primary. You just go into your network connections. Right click the network and select "make primary".

Just out of curiousity, what does a "route print" from the cmd prompt indicate?
0
 
LVL 5

Expert Comment

by:NashvilleGuitarPicker
ID: 12342629
Duh, I forgot about setting the priority.  Martone's method is much better than what I suggested, if you want to manually change the priority.

- Will
0
 

Author Comment

by:infutech
ID: 12347903
Thanks for all the advice.  Changing the priority seemed to work well even after multiple restarts and system re-boot
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now