Les - gateway address = 10.1.1.1 I assume. I have found a few SNMP libraries (eg, SharpSNMP at CodePlex) - I assume something there will give me the MAC address.
That will be much more reliable than what I can see within the management screen of my (home) router / modem, which is so full of javascript that I can foresee big problems trying to detect people switching over routers from time to time. (not to mention having to locate reliable text strings for several modems) I think I have a handle on it now. ________________________________ Ian Thomas Victoria Park, Western Australia -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Les Hughes Sent: Tuesday, May 01, 2012 5:52 PM To: ozDotNet Subject: Re: [OT] Detect ADSL modem in use Ian Thomas wrote: > > Don't ask why . > > What would be the best way to programmatically detect the modem in use > at any particular time? > > For the sites under consideration, each modem (different makes) has a > logon ip of 10.1.1.1 (it's one of the common addresses that the > manufacturers use), so I'm thinking that a method might be to start a > browser process (or open a web page with that address in a form), and > look for some modem-specific text there). > > Or is there a much simpler method not dependent on ad hoc testing of > modems? > Hi Ian, Not sure what you are after, BUT: You could get the gateway address, and using that get the MAC address. Each Modem should have a different MAC address, so you can determine the one in use from that. -- Les Hughes [email protected]
