You say ADSL modem but you're asking about Internet connectivity. Options are broadly (in order of less crappy to more crappy):
- Use SNMP to pull the interface status - Work out what the IP of the default gw is for the modem and ping that - Ping a known site on the internet - Do something layer 4+ like using a web browser control Give us a bit more context around the business problem and I can provide better advice. OTOH if you are asking which remote office the user accessing your web application is coming from is from, the best option is to get the modems fixed IPs On Tue, May 1, 2012 at 6:03 PM, Ian Thomas <il.tho...@iinet.net.au> 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? **** > > ** ** > ------------------------------ > > **Ian Thomas** > Victoria Park, ********Western Australia************ > > ** ** > -- *David Connors* | da...@codify.com | www.codify.com Codify Pty Ltd Phone: +61 (7) 3210 6268 | Facsimile: +61 (7) 3210 6269 | Mobile: +61 417 189 363 V-Card: https://www.codify.com/cards/davidconnors Address Info: https://www.codify.com/contact