Internet connection sharing

This document describes how internet connection sharing (ICS) can be enabled on Windows 10 IoT Core. Developers can use the NetworkTetheringManager API to configure ICS programmatically. The API is described in the NetworkOperatorTetheringManager class. When using one of the Windows 10 IoT Core Release Image ICS can also be configured using the device portal.

Configuring ICS using the device portal

See Windows Device Portal (WDP).

ICS code sample

The code sample below demonstrates how the NetworkOperatorTetheringManager API is used to start sharing an Ethernet connection over Wi-Fi. The CreateFromConnectionProfile method accepts arguments that specifies the public and private interface. In any cases of misconfiguration, such as the Wi-Fi radio is turned off, or Ethernet has limited connectivity, then the attempt to start internet sharing conveys an appropriate error code pertaining to this scenario.

using Windows.Networking.NetworkOperators;
using Windows.Networking.Connectivity; 

// Find the Ethernet profile
var connectionProfiles = NetworkInformation.GetConnectionProfiles(); 
var ethernetConnectionProfile = connectionProfiles.FirstOrDefault(x => x.IsEthernetConnectionProfile); 

// Find an 802.11 wireless network interface (IANA Type 71)
var networkAdapters = NetworkInformation.GetNetworkAdapters();
var targetNetworkAdapter = networkAdapters.FirstOrDefault(x => x.IanaInterfaceType == 71);

if (ethernetConnectionProfile != null && targetNetworkAdapter != null)
    var tetheringManager = NetworkOperatorTetheringManager.CreateFromConnectionProfile(ethernetConnectionProfile, targetNetworkAdapter); 

    var result = await tetheringManager.StartTetheringAsync(); 
    if (result.Status == TetheringOperationStatus.Success)

If you using the Windows IoT Core November 2015 Release you need to follow the instructions described in the Internet Connection Sharing Tutorial (Windows IoT Core November 2015 Release) document.

Was this page helpful?
Additional feedback?
Thank you! We appreciate your feedback.
Follow us