Resolving localhost IP address in Multi-homed system

  • Thread starter Thread starter daytony32
  • Start date Start date
D

daytony32

I am working with a multi-homed system running XP (XP embedded
actually, but this question is specifically about networking). I have
found that the IP address used for localhost is dependent on many
things including the HW present when installing Windows, and which NICs
are connected to extenral NICs.

I need to be able to specify the network interface order used in
resolving the IP address for localhost. I figured out how to hack the
system into doing what I want, but I am looking for the proper way to
do this. Plus, I suspect the hack method isn't complete (although it
seems to have the desired effect so far).

The hack involves manually re-arranging the order of the interfaces
listed in the registry values "Bind," "Export," and "Route" under the
key
"HKLM\System\CurrentControlSet\Services\TcpIp\Linkage"

What is the right way to changes these settings using OS methods? And
if you know how to do it with command line utilities, that would be a
giant plus since I am not working with full-blown windows).

Thanks.
- T.H.
 
Ah! That seems to be the information I was looking for. For
newgroup-archive purposes, this is the information I was looking for in
the XP Embedded forum thread titled
gethostbyname() in Multi-homed systems...
.... I was asking the wrong questions back then.

Thanks so much!
- Tony H.
 
Back
Top