Re: check if there is connection to internet
- From: Eduardo <mm@xxxxxx>
- Date: Tue, 15 Sep 2009 17:06:10 -0300
MikeD escribió:
"Eduardo" <mm@xxxxxx> wrote in message news:h8oiti$dut$1@xxxxxxxxxxxHi,
I'm thinking about a new protection system for one of my programs, performing some communication with my website to avoid license abuse.
My question is: is there any method to know if currently there is an internet connection, even when the program is blocked by a firewall?
I know that one of the methods to know if there is a connection is to ping a website (like yahoo.com), but this will tell me there is no conection if the user blocks it with a firewall, so what I want to be able to know is whether there is really no connection or if it's blocked.
From the point-of-view of your app, what's the difference? It can't "connect" regardless.
AFAIK, there's only one sure-fire way to know if the app can connect to the internet....and that's to actually try to connect to something, be it a web page, an FTP site, etc. If your app is blocked by a firewall or other means, then for all intents and purposes, your app can't connect. So what if the real reason is due to no internet access or the connection was blocked?
Over the years, there's been TONS of posts on this. I recommend you search the newsgroup archives at http://groups.google.com/advanced_search. You should have no problem finding posts with example source code and debating various methods.
I explained that in the reply to Ralph, anyway I already changed my mind.
Thanks.
.
- References:
- check if there is connection to internet
- From: Eduardo
- Re: check if there is connection to internet
- From: MikeD
- check if there is connection to internet
- Prev by Date: Re: Project Menu
- Next by Date: Re: Software Protect & Registration
- Previous by thread: Re: check if there is connection to internet
- Next by thread: Re: check if there is connection to internet
- Index(es):
Relevant Pages
|
Loading