10-17-2005 06:28 AM
My question is: how do I know that #1 is the right number to use? This app will be deployed on a bunch of machines, will the local be Net #0 on all machines? Is that a system config issue? Do I need to tell him to configure a control panel somewhere a certain way? Do I need to read both addresses and display the one that does NOT start with "192."? How do I make this bulletproof?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-17-2005 07:16 AM
10-17-2005 10:20 AM
Ideally, I'd detect every time the program starts, probably once a day.
What determines the position of the card in the order. The help file says they're in the order that the system resolver finds them, but what determines that?
Is it system config?
Is it slot number of the card?
Is it a flip of a coin?
Can I assume that 192.168.x.x is always the local net?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-17-2005 10:50 AM
The last I checked (WinME) this was OS dependant.
The NIC cards were listed in the order I added them to the system. If I deleted the first, the second becaome the first when I added the first one back in. Boy was that a nightmare.
Since new OS configure these on the fly it may be even harder to predict now.
Sorry Coastal, but that is all I can offer.
Ben
10-17-2005 11:01 AM
So, If someone does some troubleshooting on the system, and if I depend on the order, then I might be up the creek.
I suspected that, which is why I asked the question.
I had better do some detecting then. I think I'll look for the 192.x.x.x, as I'm pretty sure they'll set it up that way.
Oddly enough, everything swems to works OK with the connections, it's just the display of the number that's questionable.
Blog for (mostly LabVIEW) programmers: Tips And Tricks
10-17-2005 11:06 AM
Yes, selection of the proper NIC is transparent to the user.
There was an old version of FP that could not find a fresh FP unit if it was on the second NIC because it used the MAC address on the first NIC.
As long as you just ride on top of the OSI-7-Layer model you are OK. It is digging into it that gets complicated.
Ben