Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8302341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:15:56+00:00 2026-06-08T17:15:56+00:00

why the NetworkInterface.GetIsNetworkAvailable() method always returns true,when i debug it on my windows phone

  • 0

why the NetworkInterface.GetIsNetworkAvailable() method always returns true,when i debug it on my windows phone 7 device?not emulator,is it sure that “NetworkInterface.NetworkInterfaceType==NetworkInterface.None” means a device does’t get network access?how can i detect whether a device connected a network that has intenert access? i tried this link,Zune-Detection-and-Network-Awareness,but the NetworkInterface.GetIsNetworkAvailable() method always returns true,which stumbled me a lot.Thanks for your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:15:57+00:00Added an answer on June 8, 2026 at 5:15 pm

    Read the documentation for the method. Here is what MSDN has to say:

    A network connection is considered to be available if any network
    interface is marked “up” and is not a loopback or tunnel interface.

    There are many cases in which a device or computer is not connected to
    a useful network but is still considered available and
    GetIsNetworkAvailable will return true. For example, if the device
    running the application is connected to a wireless network that
    requires a proxy, but the proxy is not set, GetIsNetworkAvailable will
    return true. Another example of when GetIsNetworkAvailable will return
    true is if the application is running on a computer that is connected
    to a hub or router where the hub or router has lost the upstream
    connection.

    Generally, you could say that this method is generally prone to errors. I would recommend taking the approach of failed requests – have a couple of URLs to test against and check if HTTP/DNS resolve requests go through. If some of them pass – there is a connection. If all fail – chances are you are not connected.

    Here is a sample.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems the java.net.NetworkInterface implementation of android does not have a byte[] getHardwareAddress() method
i have a windows phone 7 app that communicates with a web service. i've
I have an InterfaceAddress that returns an ipv4 address (4 octets). However the network
I have a method to check and make sure my SQL server is online,
I am writing an application in VB for windows phone 7.5 but it has
I would like to call the getHardwareAddress() method of a NetworkInterface instance in eclipse,
I have the following code on a Windows machine: for(Enumeration enm = NetworkInterface.getNetworkInterfaces(); enm.hasMoreElements();){
I thought that I should use NetworkInterface::getDisplayName. I got some name, but this name
i am using NetworkInterface class to get the MAC address but i am getting
-(NSMutableArray *) forwardInterfaceList: (networkInterface *) i; I get the error Expected ')' before 'networkInterface'

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.