Results 1 to 2 of 2

Thread: Fast way to check for internet Connection?

  1. #1
    ryodoan is offline VB.NET Forum Enthusiast
    .NET Framework
    .NET 2.0 (VS 2005)
    Join Date
    Jul 2004
    Location
    Ohio
    Posts
    65
    Reputation
    130

    Fast way to check for internet Connection?

    Hey, I need a fast, accurate way to check for an internet connection, here are some things I have tried.

    1. My.Computer.Network.IsAvailable()
      • Pros: Its super Fast
      • Cons:
        • Only tells you if you are connected to a network
        • Gives a false positive when you are still connecting to a network (a problem with bad wireless connections)
    2. Try to contact a website with a System.Net.webrequest
      • Pros: It works great when you actually have an internet connection (0.14 seconds)
      • Cons: When you dont have an internet connection it is slow (2.34 seconds)
    So, any other suggestions? Thanks in advance for any input.
    "I see said the blind man to the deaf woman"

  2. #2
    Neal's Avatar
    Neal is offline VB.NET Forum Admin
    .NET Framework
    .NET 4.5
    Join Date
    Jul 2004
    Location
    Richmond, VA
    Posts
    1,250
    Reputation
    240
    Do a PING check
    Neal
    VB.NET Forums Admin

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Harvest time tracking