Can Vb.Net do this?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jim

    #1

    Can Vb.Net do this?

    I have a user that uses a built-in wireless ethernet card to connect to our
    wireless router and surf the internet from behind our router and uses a
    wireless Sprint card to connect to the internet when not in the office.

    I need to be able to detect when he is connected from the office and when he
    is connected via the Sprint card.

    Monitoring the status of the Local Area Connection may not be the best
    solution because he may use it to connect at hotspots outside the office and
    I need to know specifically if he is connected at the office (AT&T/Bellsouth
    DSL) or to another hotspot on the AT&T/Bellsouth DSL network.

    Any ideas? Any sample code?

    Thanks!


  • jim

    #2
    Re: Can Vb.Net do this?

    Yeah...I know.....this is a CSharp group....but I could use your help too.
    I can convert the CSharp code ( I think) if you know of any that can help me
    do this.

    Thanks for you help!


    "jim" <jim@yourpc.edu wrote in message
    news:y_1hi.1201 2$p7.3145@bigne ws3.bellsouth.n et...
    >I have a user that uses a built-in wireless ethernet card to connect to our
    >wireless router and surf the internet from behind our router and uses a
    >wireless Sprint card to connect to the internet when not in the office.
    >
    I need to be able to detect when he is connected from the office and when
    he is connected via the Sprint card.
    >
    Monitoring the status of the Local Area Connection may not be the best
    solution because he may use it to connect at hotspots outside the office
    and I need to know specifically if he is connected at the office
    (AT&T/Bellsouth DSL) or to another hotspot on the AT&T/Bellsouth DSL
    network.
    >
    Any ideas? Any sample code?
    >
    Thanks!
    >
    >

    Comment

    • =?Utf-8?B?TS4gUG9zc2V0aA==?=

      #3
      RE: Can Vb.Net do this?

      if i understand you correctly ,,

      You need to know if a person is connected from your office to the internet
      or at another place

      this is pretty simple , just check if a known location at your intranet is
      availlable
      ( for instance by pinging )


      :-) or am i thinking to simple





      "jim" wrote:
      I have a user that uses a built-in wireless ethernet card to connect to our
      wireless router and surf the internet from behind our router and uses a
      wireless Sprint card to connect to the internet when not in the office.
      >
      I need to be able to detect when he is connected from the office and when he
      is connected via the Sprint card.
      >
      Monitoring the status of the Local Area Connection may not be the best
      solution because he may use it to connect at hotspots outside the office and
      I need to know specifically if he is connected at the office (AT&T/Bellsouth
      DSL) or to another hotspot on the AT&T/Bellsouth DSL network.
      >
      Any ideas? Any sample code?
      >
      Thanks!
      >
      >
      >

      Comment

      • Smokey Grindle

        #4
        Re: Can Vb.Net do this?

        that wouldn't tell if you are connected to two different types of
        connections... that would just tell you if you had an internet connection or
        could reach a server ;) but that could work in this instance for him, never
        know.. in our office though we have pinging disabled internally.. and
        external pings also.. so in our case ping wouldnt work but this isnt us :)

        "M. Posseth" <MPosseth@discu ssions.microsof t.comwrote in message
        news:F223D674-85B5-491D-99DE-25C21C41458F@mi crosoft.com...
        if i understand you correctly ,,
        >
        You need to know if a person is connected from your office to the internet
        or at another place
        >
        this is pretty simple , just check if a known location at your intranet is
        availlable
        ( for instance by pinging )
        >
        >
        :-) or am i thinking to simple
        >
        >
        >
        >
        >
        "jim" wrote:
        >
        >I have a user that uses a built-in wireless ethernet card to connect to
        >our
        >wireless router and surf the internet from behind our router and uses a
        >wireless Sprint card to connect to the internet when not in the office.
        >>
        >I need to be able to detect when he is connected from the office and when
        >he
        >is connected via the Sprint card.
        >>
        >Monitoring the status of the Local Area Connection may not be the best
        >solution because he may use it to connect at hotspots outside the office
        >and
        >I need to know specifically if he is connected at the office
        >(AT&T/Bellsouth
        >DSL) or to another hotspot on the AT&T/Bellsouth DSL network.
        >>
        >Any ideas? Any sample code?
        >>
        >Thanks!
        >>
        >>
        >>

        Comment

        • jim

          #5
          Re: Can Vb.Net do this?

          That's a good idea. But, to keep from constantly pinging for the server, is
          there a way to detect the disconnection and connection events of the Local
          Area Network card?


          "Smokey Grindle" <nospam@nospam. comwrote in message
          news:OKSlreluHH A.3588@TK2MSFTN GP06.phx.gbl...
          that wouldn't tell if you are connected to two different types of
          connections... that would just tell you if you had an internet connection
          or could reach a server ;) but that could work in this instance for him,
          never know.. in our office though we have pinging disabled internally..
          and external pings also.. so in our case ping wouldnt work but this isnt
          us :)
          >
          "M. Posseth" <MPosseth@discu ssions.microsof t.comwrote in message
          news:F223D674-85B5-491D-99DE-25C21C41458F@mi crosoft.com...
          >if i understand you correctly ,,
          >>
          >You need to know if a person is connected from your office to the
          >internet
          >or at another place
          >>
          >this is pretty simple , just check if a known location at your intranet
          >is
          >availlable
          >( for instance by pinging )
          >>
          >>
          >:-) or am i thinking to simple
          >>
          >>
          >>
          >>
          >>
          >"jim" wrote:
          >>
          >>I have a user that uses a built-in wireless ethernet card to connect to
          >>our
          >>wireless router and surf the internet from behind our router and uses a
          >>wireless Sprint card to connect to the internet when not in the office.
          >>>
          >>I need to be able to detect when he is connected from the office and
          >>when he
          >>is connected via the Sprint card.
          >>>
          >>Monitoring the status of the Local Area Connection may not be the best
          >>solution because he may use it to connect at hotspots outside the office
          >>and
          >>I need to know specifically if he is connected at the office
          >>(AT&T/Bellsouth
          >>DSL) or to another hotspot on the AT&T/Bellsouth DSL network.
          >>>
          >>Any ideas? Any sample code?
          >>>
          >>Thanks!
          >>>
          >>>
          >>>
          >
          >

          Comment

          • AMDRIT

            #6
            Re: Can Vb.Net do this?

            I have to ask, who/what needs to know the manner of connection and why?

            If the who is the corporate office and the why is to monitor behavior, there
            are a number of ways of determining the connection, mostly they are
            infrastructure solutions. If your router or switches support logging, you
            can read the logs and determine the connection.

            If the who is an applicatoin and the why is to alter behavior or options,
            then you can enumerate over the installed NIC's and determine if they are
            active. You can accomplish this with unmanaged API calls
            (planet-source-code.com, mvps.org/vbnet), with
            system.net(Netw orkInterface/Adapters), and from managed WMI . You can even
            capture events when network configurations change.

            Beyond that you can create a mixture of the two solutions. The query
            portions (option 2) resides on the client as a service or some such and a
            controller will live at the home office (Option 1/alternative - roll your
            own monitor service.)


            "jim" <jim@yourpc.edu wrote in message
            news:X5chi.1074 5$Qz4.9262@bign ews2.bellsouth. net...
            That's a good idea. But, to keep from constantly pinging for the server,
            is there a way to detect the disconnection and connection events of the
            Local Area Network card?
            >
            >
            "Smokey Grindle" <nospam@nospam. comwrote in message
            news:OKSlreluHH A.3588@TK2MSFTN GP06.phx.gbl...
            >that wouldn't tell if you are connected to two different types of
            >connections. .. that would just tell you if you had an internet connection
            >or could reach a server ;) but that could work in this instance for him,
            >never know.. in our office though we have pinging disabled internally..
            >and external pings also.. so in our case ping wouldnt work but this isnt
            >us :)
            >>
            >"M. Posseth" <MPosseth@discu ssions.microsof t.comwrote in message
            >news:F223D67 4-85B5-491D-99DE-25C21C41458F@mi crosoft.com...
            >>if i understand you correctly ,,
            >>>
            >>You need to know if a person is connected from your office to the
            >>internet
            >>or at another place
            >>>
            >>this is pretty simple , just check if a known location at your intranet
            >>is
            >>availlable
            >>( for instance by pinging )
            >>>
            >>>
            >>:-) or am i thinking to simple
            >>>
            >>>
            >>>
            >>>
            >>>
            >>"jim" wrote:
            >>>
            >>>I have a user that uses a built-in wireless ethernet card to connect to
            >>>our
            >>>wireless router and surf the internet from behind our router and uses a
            >>>wireless Sprint card to connect to the internet when not in the office.
            >>>>
            >>>I need to be able to detect when he is connected from the office and
            >>>when he
            >>>is connected via the Sprint card.
            >>>>
            >>>Monitoring the status of the Local Area Connection may not be the best
            >>>solution because he may use it to connect at hotspots outside the
            >>>office and
            >>>I need to know specifically if he is connected at the office
            >>>(AT&T/Bellsouth
            >>>DSL) or to another hotspot on the AT&T/Bellsouth DSL network.
            >>>>
            >>>Any ideas? Any sample code?
            >>>>
            >>>Thanks!
            >>>>
            >>>>
            >>>>
            >>
            >>
            >
            >

            Comment

            • jim

              #7
              Re: Can Vb.Net do this?

              There are 2 users that have 2 profiles in outlook 2003. They need 2 profiles
              because the office DSL only allows emails to be sent via Bellsouth mail
              servers and when on the road, their Sprint mobile wireless only allows
              emails to be sent via Sprint servers. (Both ISPs say that they have these
              restrictions to help stem the flow of spam.)

              Since you can't have 2 mail server entries in a single profile, you need 2
              profiles.

              This can be a pain in the arse...as there is no way (that I have found) to
              keep the 2 profiles in sync on a single PC. And, the few Outlook PC-to-PC
              profile syncing apps that I have found don't sync everything (folders as
              well as contacts, messages, etc.).

              I found a way to change the outgoing email server automatically, but I have
              to reliably detect where they are and make system changes automatically if
              they change where they connect to the internet.

              If I can detect that the Local Area Network connection has "connected" , I
              can then do the simple ping that is suggested here and make changes (or not)
              depending on the ping's response. And, if I can detect the "connected"
              event, I can avoid constant pinging and reserve system resources. (I just
              hate wasting CPU cycles and such...)

              If anyone knows of a better solution, I'm all ears.

              ---


              "AMDRIT" <amdrit@hotmail .comwrote in message
              news:efa5XBouHH A.4504@TK2MSFTN GP05.phx.gbl...
              >I have to ask, who/what needs to know the manner of connection and why?
              >
              If the who is the corporate office and the why is to monitor behavior,
              there are a number of ways of determining the connection, mostly they are
              infrastructure solutions. If your router or switches support logging, you
              can read the logs and determine the connection.
              >
              If the who is an applicatoin and the why is to alter behavior or options,
              then you can enumerate over the installed NIC's and determine if they are
              active. You can accomplish this with unmanaged API calls
              (planet-source-code.com, mvps.org/vbnet), with
              system.net(Netw orkInterface/Adapters), and from managed WMI . You can
              even capture events when network configurations change.
              >
              Beyond that you can create a mixture of the two solutions. The query
              portions (option 2) resides on the client as a service or some such and a
              controller will live at the home office (Option 1/alternative - roll your
              own monitor service.)
              >
              >
              "jim" <jim@yourpc.edu wrote in message
              news:X5chi.1074 5$Qz4.9262@bign ews2.bellsouth. net...
              >That's a good idea. But, to keep from constantly pinging for the server,
              >is there a way to detect the disconnection and connection events of the
              >Local Area Network card?
              >>
              >>
              >"Smokey Grindle" <nospam@nospam. comwrote in message
              >news:OKSlreluH HA.3588@TK2MSFT NGP06.phx.gbl.. .
              >>that wouldn't tell if you are connected to two different types of
              >>connections.. . that would just tell you if you had an internet
              >>connection or could reach a server ;) but that could work in this
              >>instance for him, never know.. in our office though we have pinging
              >>disabled internally.. and external pings also.. so in our case ping
              >>wouldnt work but this isnt us :)
              >>>
              >>"M. Posseth" <MPosseth@discu ssions.microsof t.comwrote in message
              >>news:F223D6 74-85B5-491D-99DE-25C21C41458F@mi crosoft.com...
              >>>if i understand you correctly ,,
              >>>>
              >>>You need to know if a person is connected from your office to the
              >>>internet
              >>>or at another place
              >>>>
              >>>this is pretty simple , just check if a known location at your intranet
              >>>is
              >>>availlable
              >>>( for instance by pinging )
              >>>>
              >>>>
              >>>:-) or am i thinking to simple
              >>>>
              >>>>
              >>>>
              >>>>
              >>>>
              >>>"jim" wrote:
              >>>>
              >>>>I have a user that uses a built-in wireless ethernet card to connect
              >>>>to our
              >>>>wireless router and surf the internet from behind our router and uses
              >>>>a
              >>>>wireless Sprint card to connect to the internet when not in the
              >>>>office.
              >>>>>
              >>>>I need to be able to detect when he is connected from the office and
              >>>>when he
              >>>>is connected via the Sprint card.
              >>>>>
              >>>>Monitorin g the status of the Local Area Connection may not be the best
              >>>>solution because he may use it to connect at hotspots outside the
              >>>>office and
              >>>>I need to know specifically if he is connected at the office
              >>>>(AT&T/Bellsouth
              >>>>DSL) or to another hotspot on the AT&T/Bellsouth DSL network.
              >>>>>
              >>>>Any ideas? Any sample code?
              >>>>>
              >>>>Thanks!
              >>>>>
              >>>>>
              >>>>>
              >>>
              >>>
              >>
              >>
              >
              >

              Comment

              • jim

                #8
                Request for help canceled.....

                Cancel requests.....af ter 6 hours of searching, I got something that will
                work (at least temporarily)... .

                Thanks for the posts though.

                jim

                "jim" <jim@yourpc.edu wrote in message
                news:K2dhi.1108 8$Qz4.2764@bign ews2.bellsouth. net...
                There are 2 users that have 2 profiles in outlook 2003. They need 2
                profiles because the office DSL only allows emails to be sent via
                Bellsouth mail servers and when on the road, their Sprint mobile wireless
                only allows emails to be sent via Sprint servers. (Both ISPs say that
                they have these restrictions to help stem the flow of spam.)
                >
                Since you can't have 2 mail server entries in a single profile, you need 2
                profiles.
                >
                This can be a pain in the arse...as there is no way (that I have found) to
                keep the 2 profiles in sync on a single PC. And, the few Outlook PC-to-PC
                profile syncing apps that I have found don't sync everything (folders as
                well as contacts, messages, etc.).
                >
                I found a way to change the outgoing email server automatically, but I
                have to reliably detect where they are and make system changes
                automatically if they change where they connect to the internet.
                >
                If I can detect that the Local Area Network connection has "connected" , I
                can then do the simple ping that is suggested here and make changes (or
                not) depending on the ping's response. And, if I can detect the
                "connected" event, I can avoid constant pinging and reserve system
                resources. (I just hate wasting CPU cycles and such...)
                >
                If anyone knows of a better solution, I'm all ears.
                >
                ---
                >
                >
                "AMDRIT" <amdrit@hotmail .comwrote in message
                news:efa5XBouHH A.4504@TK2MSFTN GP05.phx.gbl...
                >>I have to ask, who/what needs to know the manner of connection and why?
                >>
                >If the who is the corporate office and the why is to monitor behavior,
                >there are a number of ways of determining the connection, mostly they are
                >infrastructu re solutions. If your router or switches support logging,
                >you can read the logs and determine the connection.
                >>
                >If the who is an applicatoin and the why is to alter behavior or options,
                >then you can enumerate over the installed NIC's and determine if they are
                >active. You can accomplish this with unmanaged API calls
                >(planet-source-code.com, mvps.org/vbnet), with
                >system.net(Net workInterface/Adapters), and from managed WMI . You can
                >even capture events when network configurations change.
                >>
                >Beyond that you can create a mixture of the two solutions. The query
                >portions (option 2) resides on the client as a service or some such and a
                >controller will live at the home office (Option 1/alternative - roll your
                >own monitor service.)
                >>
                >>
                >"jim" <jim@yourpc.edu wrote in message
                >news:X5chi.107 45$Qz4.9262@big news2.bellsouth .net...
                >>That's a good idea. But, to keep from constantly pinging for the
                >>server, is there a way to detect the disconnection and connection events
                >>of the Local Area Network card?
                >>>
                >>>
                >>"Smokey Grindle" <nospam@nospam. comwrote in message
                >>news:OKSlrelu HHA.3588@TK2MSF TNGP06.phx.gbl. ..
                >>>that wouldn't tell if you are connected to two different types of
                >>>connections. .. that would just tell you if you had an internet
                >>>connection or could reach a server ;) but that could work in this
                >>>instance for him, never know.. in our office though we have pinging
                >>>disabled internally.. and external pings also.. so in our case ping
                >>>wouldnt work but this isnt us :)
                >>>>
                >>>"M. Posseth" <MPosseth@discu ssions.microsof t.comwrote in message
                >>>news:F223D67 4-85B5-491D-99DE-25C21C41458F@mi crosoft.com...
                >>>>if i understand you correctly ,,
                >>>>>
                >>>>You need to know if a person is connected from your office to the
                >>>>internet
                >>>>or at another place
                >>>>>
                >>>>this is pretty simple , just check if a known location at your
                >>>>intranet is
                >>>>availlabl e
                >>>>( for instance by pinging )
                >>>>>
                >>>>>
                >>>>:-) or am i thinking to simple
                >>>>>
                >>>>>
                >>>>>
                >>>>>
                >>>>>
                >>>>"jim" wrote:
                >>>>>
                >>>>>I have a user that uses a built-in wireless ethernet card to connect
                >>>>>to our
                >>>>>wireless router and surf the internet from behind our router and uses
                >>>>>a
                >>>>>wireless Sprint card to connect to the internet when not in the
                >>>>>office.
                >>>>>>
                >>>>>I need to be able to detect when he is connected from the office and
                >>>>>when he
                >>>>>is connected via the Sprint card.
                >>>>>>
                >>>>>Monitori ng the status of the Local Area Connection may not be the
                >>>>>best
                >>>>>solution because he may use it to connect at hotspots outside the
                >>>>>office and
                >>>>>I need to know specifically if he is connected at the office
                >>>>>(AT&T/Bellsouth
                >>>>>DSL) or to another hotspot on the AT&T/Bellsouth DSL network.
                >>>>>>
                >>>>>Any ideas? Any sample code?
                >>>>>>
                >>>>>Thanks!
                >>>>>>
                >>>>>>
                >>>>>>
                >>>>
                >>>>
                >>>
                >>>
                >>
                >>
                >
                >

                Comment

                • Stephany Young

                  #9
                  Re: Request for help canceled.....

                  You seem miffed that it took you as long as 6 hours to find a solution to
                  your 'problem'.

                  I recommend that you learn to be patient because you will encounter
                  'problems' that will take you days if not weeks to fimd a solution for.


                  "jim" <jim@yourpc.edu wrote in message
                  news:7cChi.1569 1$p7.6469@bigne ws3.bellsouth.n et...
                  Cancel requests.....af ter 6 hours of searching, I got something that will
                  work (at least temporarily)... .
                  >
                  Thanks for the posts though.
                  >
                  jim
                  >
                  "jim" <jim@yourpc.edu wrote in message
                  news:K2dhi.1108 8$Qz4.2764@bign ews2.bellsouth. net...
                  >There are 2 users that have 2 profiles in outlook 2003. They need 2
                  >profiles because the office DSL only allows emails to be sent via
                  >Bellsouth mail servers and when on the road, their Sprint mobile wireless
                  >only allows emails to be sent via Sprint servers. (Both ISPs say that
                  >they have these restrictions to help stem the flow of spam.)
                  >>
                  >Since you can't have 2 mail server entries in a single profile, you need
                  >2 profiles.
                  >>
                  >This can be a pain in the arse...as there is no way (that I have found)
                  >to keep the 2 profiles in sync on a single PC. And, the few Outlook
                  >PC-to-PC profile syncing apps that I have found don't sync everything
                  >(folders as well as contacts, messages, etc.).
                  >>
                  >I found a way to change the outgoing email server automatically, but I
                  >have to reliably detect where they are and make system changes
                  >automaticall y if they change where they connect to the internet.
                  >>
                  >If I can detect that the Local Area Network connection has "connected" , I
                  >can then do the simple ping that is suggested here and make changes (or
                  >not) depending on the ping's response. And, if I can detect the
                  >"connected" event, I can avoid constant pinging and reserve system
                  >resources. (I just hate wasting CPU cycles and such...)
                  >>
                  >If anyone knows of a better solution, I'm all ears.
                  >>
                  >---
                  >>
                  >>
                  >"AMDRIT" <amdrit@hotmail .comwrote in message
                  >news:efa5XBouH HA.4504@TK2MSFT NGP05.phx.gbl.. .
                  >>>I have to ask, who/what needs to know the manner of connection and why?
                  >>>
                  >>If the who is the corporate office and the why is to monitor behavior,
                  >>there are a number of ways of determining the connection, mostly they
                  >>are infrastructure solutions. If your router or switches support
                  >>logging, you can read the logs and determine the connection.
                  >>>
                  >>If the who is an applicatoin and the why is to alter behavior or
                  >>options, then you can enumerate over the installed NIC's and determine
                  >>if they are active. You can accomplish this with unmanaged API calls
                  >>(planet-source-code.com, mvps.org/vbnet), with
                  >>system.net(Ne tworkInterface/Adapters), and from managed WMI . You can
                  >>even capture events when network configurations change.
                  >>>
                  >>Beyond that you can create a mixture of the two solutions. The query
                  >>portions (option 2) resides on the client as a service or some such and
                  >>a controller will live at the home office (Option 1/alternative - roll
                  >>your own monitor service.)
                  >>>
                  >>>
                  >>"jim" <jim@yourpc.edu wrote in message
                  >>news:X5chi.10 745$Qz4.9262@bi gnews2.bellsout h.net...
                  >>>That's a good idea. But, to keep from constantly pinging for the
                  >>>server, is there a way to detect the disconnection and connection
                  >>>events of the Local Area Network card?
                  >>>>
                  >>>>
                  >>>"Smokey Grindle" <nospam@nospam. comwrote in message
                  >>>news:OKSlrel uHHA.3588@TK2MS FTNGP06.phx.gbl ...
                  >>>>that wouldn't tell if you are connected to two different types of
                  >>>>connections ... that would just tell you if you had an internet
                  >>>>connectio n or could reach a server ;) but that could work in this
                  >>>>instance for him, never know.. in our office though we have pinging
                  >>>>disabled internally.. and external pings also.. so in our case ping
                  >>>>wouldnt work but this isnt us :)
                  >>>>>
                  >>>>"M. Posseth" <MPosseth@discu ssions.microsof t.comwrote in message
                  >>>>news:F223D6 74-85B5-491D-99DE-25C21C41458F@mi crosoft.com...
                  >>>>>if i understand you correctly ,,
                  >>>>>>
                  >>>>>You need to know if a person is connected from your office to the
                  >>>>>internet
                  >>>>>or at another place
                  >>>>>>
                  >>>>>this is pretty simple , just check if a known location at your
                  >>>>>intranet is
                  >>>>>availlab le
                  >>>>>( for instance by pinging )
                  >>>>>>
                  >>>>>>
                  >>>>>:-) or am i thinking to simple
                  >>>>>>
                  >>>>>>
                  >>>>>>
                  >>>>>>
                  >>>>>>
                  >>>>>"jim" wrote:
                  >>>>>>
                  >>>>>>I have a user that uses a built-in wireless ethernet card to connect
                  >>>>>>to our
                  >>>>>>wireles s router and surf the internet from behind our router and
                  >>>>>>uses a
                  >>>>>>wireles s Sprint card to connect to the internet when not in the
                  >>>>>>office.
                  >>>>>>>
                  >>>>>>I need to be able to detect when he is connected from the office and
                  >>>>>>when he
                  >>>>>>is connected via the Sprint card.
                  >>>>>>>
                  >>>>>>Monitorin g the status of the Local Area Connection may not be the
                  >>>>>>best
                  >>>>>>solutio n because he may use it to connect at hotspots outside the
                  >>>>>>office and
                  >>>>>>I need to know specifically if he is connected at the office
                  >>>>>>(AT&T/Bellsouth
                  >>>>>>DSL) or to another hotspot on the AT&T/Bellsouth DSL network.
                  >>>>>>>
                  >>>>>>Any ideas? Any sample code?
                  >>>>>>>
                  >>>>>>Thanks!
                  >>>>>>>
                  >>>>>>>
                  >>>>>>>
                  >>>>>
                  >>>>>
                  >>>>
                  >>>>
                  >>>
                  >>>
                  >>
                  >>
                  >
                  >

                  Comment

                  • ShaneO

                    #10
                    Re: Request for help canceled.....

                    jim wrote:
                    Cancel requests.....af ter 6 hours of searching, I got something that will
                    work (at least temporarily)... .
                    >
                    Thanks for the posts though.
                    >
                    jim
                    >
                    Jim, maybe it would be a good idea to let us know what you did to
                    overcome your problem, afterall, we can all learn from each other and
                    maybe save someone else spending 6 (or more) hours later!

                    There's probably lots of ways to overcome your problem, but I for one
                    would be interested to read, even a brief description, of what you
                    decided on.


                    ShaneO

                    There are 10 kinds of people - Those who understand Binary and those who
                    don't.

                    Comment

                    • jim

                      #11
                      Re: Request for help canceled.....


                      "ShaneO" <spcacc@optusne t.com.auwrote in message
                      news:4686fea4$0 $15142$afc38c87 @news.optusnet. com.au...
                      jim wrote:
                      >Cancel requests.....af ter 6 hours of searching, I got something that will
                      >work (at least temporarily)... .
                      >>
                      >Thanks for the posts though.
                      >>
                      >jim
                      >>
                      >
                      Jim, maybe it would be a good idea to let us know what you did to overcome
                      your problem, afterall, we can all learn from each other and maybe save
                      someone else spending 6 (or more) hours later!
                      >
                      There's probably lots of ways to overcome your problem, but I for one
                      would be interested to read, even a brief description, of what you decided
                      on.
                      >
                      >
                      ShaneO

                      I spoke too soon.

                      I didn't take into account that the Sprint server requires a login to send
                      mail and the Bellsouth servers don't. That means that to handle the problem
                      from an Outlook point of view I would have to muck around with VSTO and
                      God-only-knows what else.

                      I have another idea that just might work though. I'll let you know.

                      jim


                      Comment

                      • rowe_newsgroups

                        #12
                        Re: Can Vb.Net do this?

                        On Jun 29, 2:22 pm, "jim" <j...@yourpc.ed uwrote:
                        That's a good idea. But, to keep from constantly pinging for the server, is
                        there a way to detect the disconnection and connection events of the Local
                        Area Network card?
                        >
                        "Smokey Grindle" <nos...@nospam. comwrote in message
                        >
                        news:OKSlreluHH A.3588@TK2MSFTN GP06.phx.gbl...
                        >
                        that wouldn't tell if you are connected to two different types of
                        connections... that would just tell you if you had an internet connection
                        or could reach a server ;) but that could work in this instance for him,
                        never know.. in our office though we have pinging disabled internally..
                        and external pings also.. so in our case ping wouldnt work but this isnt
                        us :)
                        >
                        "M. Posseth" <MPoss...@discu ssions.microsof t.comwrote in message
                        news:F223D674-85B5-491D-99DE-25C21C41458F@mi crosoft.com...
                        if i understand you correctly ,,
                        >
                        You need to know if a person is connected from your office to the
                        internet
                        or at another place
                        >
                        this is pretty simple , just check if a known location at your intranet
                        is
                        availlable
                        ( for instance by pinging )
                        >
                        :-) or am i thinking to simple
                        >
                        "jim" wrote:
                        >
                        >I have a user that uses a built-in wireless ethernet card to connect to
                        >our
                        >wireless router and surf the internet from behind our router and uses a
                        >wireless Sprint card to connect to the internet when not in the office.
                        >
                        >I need to be able to detect when he is connected from the office and
                        >when he
                        >is connected via the Sprint card.
                        >
                        >Monitoring the status of the Local Area Connection may not be the best
                        >solution because he may use it to connect at hotspots outside the office
                        >and
                        >I need to know specifically if he is connected at the office
                        >(AT&T/Bellsouth
                        >DSL) or to another hotspot on the AT&T/Bellsouth DSL network.
                        >
                        >Any ideas? Any sample code?
                        >
                        >Thanks!

                        That's a good idea. But, to keep from constantly pinging for the server, is
                        there a way to detect the disconnection and connection events of the Local
                        Area Network card?
                        Well I don't know how to listen to the (dis)connect events, but you
                        can check whether the network connection is enabled or disabled by
                        looking at the verb name for the connection. While the article was
                        written to enabled/disable the network connection you could modify it
                        to just return whether the connection is enabled or not:



                        Thanks,

                        Seth Rowe

                        Comment

                        • jim

                          #13
                          Re: Can Vb.Net do this?


                          "rowe_newsgroup s" <rowe_email@yah oo.comwrote in message
                          news:1183378232 .001608.195640@ q69g2000hsb.goo glegroups.com.. .
                          On Jun 29, 2:22 pm, "jim" <j...@yourpc.ed uwrote:
                          >That's a good idea. But, to keep from constantly pinging for the server,
                          >is
                          >there a way to detect the disconnection and connection events of the
                          >Local
                          >Area Network card?
                          >>
                          >"Smokey Grindle" <nos...@nospam. comwrote in message
                          >>
                          >news:OKSlreluH HA.3588@TK2MSFT NGP06.phx.gbl.. .
                          >>
                          that wouldn't tell if you are connected to two different types of
                          connections... that would just tell you if you had an internet
                          connection
                          or could reach a server ;) but that could work in this instance for
                          him,
                          never know.. in our office though we have pinging disabled internally..
                          and external pings also.. so in our case ping wouldnt work but this
                          isnt
                          us :)
                          >>
                          "M. Posseth" <MPoss...@discu ssions.microsof t.comwrote in message
                          >news:F223D67 4-85B5-491D-99DE-25C21C41458F@mi crosoft.com...
                          >if i understand you correctly ,,
                          >>
                          >You need to know if a person is connected from your office to the
                          >internet
                          >or at another place
                          >>
                          >this is pretty simple , just check if a known location at your
                          >intranet
                          >is
                          >availlable
                          >( for instance by pinging )
                          >>
                          >:-) or am i thinking to simple
                          >>
                          >"jim" wrote:
                          >>
                          >>I have a user that uses a built-in wireless ethernet card to connect
                          >>to
                          >>our
                          >>wireless router and surf the internet from behind our router and uses
                          >>a
                          >>wireless Sprint card to connect to the internet when not in the
                          >>office.
                          >>
                          >>I need to be able to detect when he is connected from the office and
                          >>when he
                          >>is connected via the Sprint card.
                          >>
                          >>Monitoring the status of the Local Area Connection may not be the
                          >>best
                          >>solution because he may use it to connect at hotspots outside the
                          >>office
                          >>and
                          >>I need to know specifically if he is connected at the office
                          >>(AT&T/Bellsouth
                          >>DSL) or to another hotspot on the AT&T/Bellsouth DSL network.
                          >>
                          >>Any ideas? Any sample code?
                          >>
                          >>Thanks!
                          >
                          >
                          >
                          >That's a good idea. But, to keep from constantly pinging for the server,
                          >is
                          >there a way to detect the disconnection and connection events of the
                          >Local
                          >Area Network card?
                          >
                          Well I don't know how to listen to the (dis)connect events, but you
                          can check whether the network connection is enabled or disabled by
                          looking at the verb name for the connection. While the article was
                          written to enabled/disable the network connection you could modify it
                          to just return whether the connection is enabled or not:
                          >
                          http://www.codeproject.com/useritems...etworkConn.asp
                          I used a handler for the NetworkChange.N etworkAddressCh anged event, and it
                          seems to work just fine.

                          jim


                          Comment

                          • C-Services Holland b.v.

                            #14
                            Re: Can Vb.Net do this?

                            rowe_newsgroups schreef:
                            Well I don't know how to listen to the (dis)connect events, but you
                            can check whether the network connection is enabled or disabled by
                            looking at the verb name for the connection. While the article was
                            written to enabled/disable the network connection you could modify it
                            to just return whether the connection is enabled or not:
                            >

                            >
                            Thanks,
                            >
                            Seth Rowe
                            >
                            I guess that only works for English versions of Windows. If you want to
                            use that for a program that's going to be used in other countries just
                            checking if a certain text appears in the name will fail.


                            --
                            Rinze van Huizen
                            C-Services Holland b.v

                            Comment

                            • rowe_newsgroups

                              #15
                              Re: Can Vb.Net do this?

                              On Jul 6, 3:27 am, "C-Services Holland b.v."
                              <cshNOSPAMPLE.. .@csh4u.nlwrote :
                              rowe_newsgroups schreef:
                              >
                              Well I don't know how to listen to the (dis)connect events, but you
                              can check whether the network connection is enabled or disabled by
                              looking at the verb name for the connection. While the article was
                              written to enabled/disable the network connection you could modify it
                              to just return whether the connection is enabled or not:
                              >>
                              Thanks,
                              >
                              Seth Rowe
                              >
                              I guess that only works for English versions of Windows. If you want to
                              use that for a program that's going to be used in other countries just
                              checking if a certain text appears in the name will fail.
                              >
                              --
                              Rinze van Huizen
                              C-Services Holland b.v
                              Unfortunately you're correct (it also fails if you rename a
                              connection) - but I don't know how else you could match a specific
                              connection.

                              Thanks,

                              Seth Rowe

                              Comment

                              Working...