# NetworkReachability

> Describes network reachability options.

## Definition

* **Type:** Enum
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public enum NetworkReachability
```

## Remarks

Describes which options are available for connecting to the Internet on the device if there are any.

## Examples

```csharp
//Attach this script to a GameObject
//This script checks the device’s ability to reach the internet and outputs it to the console window

using UnityEngine;

public class Example : MonoBehaviour
{
    string m_ReachabilityText;

    void Update()
    {
//Output the network reachability to the console window
        Debug.Log("Internet : " + m_ReachabilityText);
        //Check if the device cannot reach the internet
        if (Application.internetReachability == NetworkReachability.NotReachable)
        {
            //Change the Text
            m_ReachabilityText = "Not Reachable.";
        }
        //Check if the device can reach the internet via a carrier data network
        else if (Application.internetReachability == NetworkReachability.ReachableViaCarrierDataNetwork)
        {
            m_ReachabilityText = "Reachable via carrier data network.";
        }
        //Check if the device can reach the internet via a LAN
        else if (Application.internetReachability == NetworkReachability.ReachableViaLocalAreaNetwork)
        {
            m_ReachabilityText = "Reachable via Local Area Network.";
        }
    }
}
```

## Fields

| Value                                                                                                                               | Description                                    |
| ----------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [NotReachable](/engine/6000.7/script-reference/unityengine/networkreachability/notreachable.md)                                     | Network is not reachable.                      |
| [ReachableViaCarrierDataNetwork](/engine/6000.7/script-reference/unityengine/networkreachability/reachableviacarrierdatanetwork.md) | Network is reachable via carrier data network. |
| [ReachableViaLocalAreaNetwork](/engine/6000.7/script-reference/unityengine/networkreachability/reachablevialocalareanetwork.md)     | Network is reachable via WiFi or cable.        |
