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! 15 1598
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" <ji*@yourpc.edu wrote in message
news:y_******** *********@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!
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 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" <MP******@discu ssions.microsof t.comwrote in message
news:F2******** *************** ***********@mic rosoft.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?
"Smokey Grindle" <no****@nospam. comwrote in message
news:OK******** ******@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" <MP******@discu ssions.microsof t.comwrote in message
news:F2******** *************** ***********@mic rosoft.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!
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" <ji*@yourpc.edu wrote in message
news:X5******** **********@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" <no****@nospam. comwrote in message
news:OK******** ******@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" <MP******@discu ssions.microsof t.comwrote in message news:F2******* *************** ************@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!
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" <am****@hotmail .comwrote in message
news:ef******** ******@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" <ji*@yourpc.edu wrote in message
news:X5******** **********@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" <no****@nospam. comwrote in message news:OK******* *******@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" <MP******@discu ssions.microsof t.comwrote in message news:F2****** *************** *************@m icrosoft.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! > > >
Cancel requests.....af ter 6 hours of searching, I got something that will
work (at least temporarily)... .
Thanks for the posts though.
jim
"jim" <ji*@yourpc.edu wrote in message
news:K2******** **********@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" <am****@hotmail .comwrote in message
news:ef******** ******@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" <ji*@yourpc.edu wrote in message news:X5******* ***********@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" <no****@nospam. comwrote in message news:OK****** ********@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" <MP******@discu ssions.microsof t.comwrote in message news:F2***** *************** **************@ microsoft.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! >> >> >>
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" <ji*@yourpc.edu wrote in message
news:7c******** *********@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" <ji*@yourpc.edu wrote in message
news:K2******** **********@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" <am****@hotmail .comwrote in message news:ef******* *******@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" <ji*@yourpc.edu wrote in message news:X5****** ************@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" <no****@nospam. comwrote in message news:OK***** *********@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" <MP******@discu ssions.microsof t.comwrote in message news:F2**** *************** *************** @microsoft.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! >>> >>> >>> > >
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: James |
last post by:
I have a from with 2 fields:
Company & Name
Depening which is completed, one of the following queries will be run:
if($Company){
$query = "Select C*
From tblsample
Where ID = $Company
Order By Company ASC";
|
by: Scott D |
last post by:
I am trying to check and see if a field is posted or not, if not
posted then assign $location which is a session variable to
$location_other. If it is posted then just assign it to
$location_other
I keep getting "Notice: Undefined index: location_other" referring to
(!($_POST)) {
$location_other = $location;
}
else
|
by: Nick |
last post by:
Can someone please tell me how to access elements from a multiple
selection list? From what ive read on other posts, this is correct. I
keep getting an "Undefined variable" error though...
Form page************************************************************
<form action="/process.php" method="get" name="formOne" id="formOne">
<select name="owner" size="6" multiple id="owner">
<option value="one">one</option>
<option...
|
by: Alexander Ross |
last post by:
I have a variable ($x) that can have 50 different (string) values. I want
to check for 7 of those values and do something based on it ... as I see it
I have 2 options:
1) if (($x=="one") || ($x=="two") || ... || ($x=="seven")) ...
or
2) switch ($x){
case("one"):
|
by: Dan Foley |
last post by:
This script runs fine, but I'd like to know why it's so slow.. Thanks
for any help out there on how i can make it faster (it might take up
to 5 min to write these 3 export files whith 15 records each!!!)
Dan
====================
<style>
body, table, tr, td {
font-family: 'verdana';
font-size: 12px;
| |
by: Lee Redeem |
last post by:
Hi there
I've created abd uploaded this basic PHP script:
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<H1 align="center">
|
by: christopher vogt |
last post by:
Hi,
i'm wondering if there is something like $this-> to call a method inside
another method of the same class without using the classname in front.
I actually use
class TEST
{
function func1()
|
by: Phil Powell |
last post by:
Ok guys, here we go again!
SELECT s.nnet_produkt_storrelse_navn
FROM nnet_produkt_storrelse s, nnet_produkt_varegruppe v,
nnet_storrelse_varegruppe_assoc sv, nnet_produkt p
WHERE s.nnet_produkt_storrelse.id = sv.nnet_produkt_storrelse_id
AND sv.nnet_produkt_varegruppe_id = v.nnet_produkt_varegruppe_id
AND sv.nnet_produkt_varegruppe_id IN (
SELECT nnet_produkt_varegruppe_id
FROM nnet_produkt_varegruppe
|
by: Michel |
last post by:
a site like this
http://www.dvdzone2.com/dvd
Can you make it in PHP and MySQL within 6 weeks?
If so, send me your price
2 a r a (at) p a n d o r a . b e
|
by: Maciej Nadolski |
last post by:
Hi!
I can`t understand what php wants from me:( So:
Cannot send session cache limiter - headers already sent (output started at
/home/krecik/public_html/silnik.php:208) in /home/krecik/public_html/silnik.php on
line 251
Line 208: print ( "error: " . mysql_error());
Line 251: session_register("uprawnienia", "zalogowany");
I can understand that sth, is wrong in line 251 after line 208 and it is logical to
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |