Re: check if there is connection to internet



MikeD escribió:


"Eduardo" <mm@xxxxxx> wrote in message news:h8oiti$dut$1@xxxxxxxxxxx
Hi,

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.
.



Relevant Pages

  • Re: Problems accessing site
    ... Firewall, I checked as well and its in allow mode. ... The website is encountering problems. ... Firefox can't establish a connection to the server at ebay.com. ... In Internet Options, Content tab, if Content Advisor is turned on, click ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Problems accessing site
    ... check that port 443 is enabled on your windows firewall. ... The website is encountering problems. ... Firefox can't establish a connection to the server at ebay.com. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Problems accessing site
    ... I'm using the firewall provided by Windows. ... The website is encountering problems. ... Firefox can't establish a connection to the server at ebay.com. ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: check if there is connection to internet
    ... I know that one of the methods to know if there is a connection is to ping a website, 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. ... If your app is blocked by a firewall or other means, then for all intents and purposes, your app can't connect. ...
    (microsoft.public.vb.general.discussion)
  • Re: Skype for Java 1.5 - mobile phone version
    ... and for SIP the results are a bit better. ... Trying to dial, the phone in the other end actually rings, but the app ... saying it cannot make the connection, like the SIP port is blocked. ... Shut down your firewall, and that test app works from here. ...
    (comp.os.os2.misc)

Loading