mixed-reality

Using the Windows Device Portal

Feature HoloLens 1st Gen HoloLens 2
Windows Device Portal :heavy_check_mark: :heavy_check_mark:

The Windows Device Portal for HoloLens lets you configure and manage your device remotely over Wi-Fi or USB. The Device Portal is a web server on your HoloLens that you can connect to from a web browser on your PC. The Device Portal includes many tools that will help you manage your HoloLens and debug and optimize your apps.

This documentation is specifically about the Windows Device Portal for HoloLens. To use the Windows Device portal for desktop (including for Windows Mixed Reality), see Windows Device Portal overview

[!NOTE] Device Portal is a developer tool and is not to be used in applications deployed to your organization.

Setting up HoloLens to use Windows Device Portal

  1. Power on your HoloLens and put on the device.
  2. Use the Start gesture for HoloLens2 or Bloom on HoloLens (1st Gen) to launch the main menu.
  3. Gaze at the Settings tile and do an air-tap gesture on HoloLens (1st Gen). You can also select it on HoloLens 2 by touching it or using a Hand ray.
  4. Select the Update menu item.
  5. Select the For developers menu item.
  6. Enable Developer Mode.

[!IMPORTANT] If you’re in multi-user and not an admin, the ability to enter Developer Mode may be grayed out. Please ensure that you are an admin on the device.

  1. Scroll down and enable Device Portal.
  2. If you’re setting up Windows Device Portal so you can deploy apps to this HoloLens over USB or Wi-Fi, select Pair to generate a pairing PIN. Leave the Settings app at the PIN popup until you enter the PIN into Visual Studio during your first deployment.

Enabling developer mode in the Settings app for Windows Holographic

Connecting over Wi-Fi

  1. Connect your HoloLens to Wi-Fi.
  2. Look up your device’s IP address by either:
    • Going to Settings > Network & Internet > Wi-Fi > Advanced Options.
    • Going to Settings > Network & Internet and selecting Hardware properties.
    • Using the “What’s my IP address?” voice command.

HoloLens 2 settings

  1. From a web browser on your PC, go to https://
    • The browser will display the following message: “There’s a problem with this website’s security certificate” because the certificate, which is issued to the Device Portal is a test certificate. You can ignore this certificate error for now and continue.

Connecting over USB

[!IMPORTANT] IpOverUsb is no longer recommended per new browser standards as it requires the use of port 10080. If you still wish to use IpOverUsb, check the ‘USB Device Connectivity’ box during Visual Studio installation, which isn’t checked by default. Instead, we recommend connecting with UsbNcm, which is supported by default on HoloLens 2. If you are using a HoloLens 1, we recommend connecting to your PC using WiFi.

  1. If your HoloLens 2 is running Windows Holographic version 21H1 or higher, go to ‘For developers’ in the Settings app and make sure that ‘Device discovery’ is toggled ON.
  2. Connect your HoloLens 2 to your PC with a USB-C cable.
  3. Find your UsbNcm IP. There are a few ways to do this:
    • In the Settings app on the device (This method only works for HoloLenses running Windows Holographic version 21H1 or higher, with ‘Device discovery’ toggled ON.)
    1. Go into the Settings app on the device.
    2. Go to “Update & Security” > “For developers.” This is the same place you enabled Device Portal.
    3. At the bottom of the page, copy your Ethernet IP address. This is your UsbNcm IP. HoloLens 2 settings - UsbNcm IP
  1. If you copied your UsbNcm IP, from a web browser on your PC go to https:// followed by your UsbNcm IP.

Moving files over USB

You can move files from your PC to your HoloLens without any additional setup.

  1. Connect your PC to your HoloLens with a USB cord
  2. Drag your files into PC\[Your_HoloLens_Device_Name]\Internal Storage on your desktop
  3. Open the Start Menu and select All apps > File Explorer on your HoloLens

[!NOTE] You may need to select This device on the left side of the panel to navigate away from “Recently used” to locate your files.

Connecting to an emulator

You can also use the Device Portal with your emulator. To connect to the Device Portal, use the toolbar. Select this icon: Open Device Portal icon Open Device Portal: Open the Windows Device Portal for the HoloLens OS in the emulator.

Creating a Username and Password

Set up access to Windows Device Portal
Set up access to Windows Device Portal

The first time you connect to the Device Portal on your HoloLens, you’ll need to create a username and password.

  1. In a web browser on your PC, enter the IP address of the HoloLens. The Setup access page opens.
  2. Select or tap Request pin and look at the HoloLens display to get the generated PIN.
  3. Enter the PIN in the PIN displayed on your device textbox.
  4. Enter the user name you’ll use to connect to the Device Portal. It doesn’t need to be a Microsoft Account (MSA) name or a domain name.
  5. Enter a password and confirm it. The password must be at least seven characters in length. It doesn’t need to be an MSA or domain password.
  6. Click Pair to connect to Windows Device Portal on the HoloLens.

If you wish to change this username or password at any time, you can repeat this process by visiting the device security page by navigating to: https:///devicepair.htm.

Security certificate

If you see a “certificate error” in your browser, you can fix it by creating a trust relationship with the device.

Each HoloLens generates a self-signed certificate for its SSL connection. By default, this certificate is not trusted by your PC’s web browser and you may get a “certificate error”. You can securely connect to your device by downloading this certificate from your HoloLens over USB or a Wi-Fi network you trust and trusting it on your PC.

  1. Make sure you are on a secure network (USB or a Wi-Fi network you trust).
  2. Download this device’s certificate from the “Security” page on the Device Portal.
    • Navigate to: https:///devicepair.htm
    • Open the node for System > Preferences.
    • Scroll down to Device Security, select the “Download this device’s certificate” button.
  3. Install the certificate in the “Trusted Root Certification Authorities” store on your PC.
    • From the Windows menu, type: Manage Computer Certificates and start the applet.
    • Expand the Trusted Root Certification Authority folder.
    • Select the Certificates folder.
    • From the Action menu, select: All Tasks > Import…
    • Complete the Certificate Import Wizard, using the certificate file you downloaded from the Device Portal.
  4. Restart the browser.

[!NOTE] This certificate will only be trusted for the device and the user will have to go through the process again if the device is flashed.

Sideloading applications

Installing a certificate

  1. In Windows Device Portal, navigate to the Apps manager page
  2. In the Deploy apps section, select Install Certificate
  3. Under Select certificate file (.cer) used to sign an app package, select Choose File and browse to the certificate associated with the app package that you want to sideload
  4. Select Install to start the installation

Screenshot of the Apps manager page open in the Windows Device Portal

Installing an app

[!NOTE] In order for an app to install successfully via Device Portal it must be signed by a certificate, this certificate must be installed to the device prior to attempting to install the app. See the previous section for instructions.

  1. When you’ve created an app package from Visual Studio, you can remotely install it onto your device from the generated files:

Screenshot of the app package file contents

  1. In Windows Device Portal, navigate to the Apps manager page
  2. In the Deploy apps section, select Local Storage
  3. Under Select the application package, select Choose File and browse to the app package that you want to sideload
  4. Check the respective boxes if you want to install optional or framework packages along with the app installation and select Next:

Screenshot of the Apps manager page open in the Windows Device Portal with Local Storage tab highlighted

  1. Select Install to start the installation

Screenshot of the Apss manager page open in the Windows Device Portal with installation successfully completed

Once the installation is complete, go back to the All apps page on your HoloLens and launch your newly installed application!

Device Portal Pages

Home

Windows Device Portal home page on Microsoft HoloLens
Windows Device Portal home page on Microsoft HoloLens

[NOTE] Settings configured in the Device Portal apply to the entire device and persist through reboots. Device Portal is for use by developers, not in deployed applications.

Your Device Portal session starts at the Home page. Access other pages from the navigation bar along the left side of the home page.

The toolbar at the top of the page provides access to commonly used status and features.

The home page shows the following info:

3D View

3D View page in Windows Device Portal on Microsoft HoloLens
3D View page in Windows Device Portal on Microsoft HoloLens

Use the 3D View page to see how HoloLens interprets your surroundings. Navigate the view by using the mouse:

Map Manager

Map Manager allows you to share maps across devices, which can be used to set up shared experiences for Location-Based Entertainment customers. The tool allows you to import and export system maps and anchors.

To access the Map Manager, log into the Device Portal and select Mixed Reality -> Map Manager:

Map manager page in Windows Device Portal Map Manager page in Windows Device Portal on Microsoft HoloLens

Exporting and importing maps

To export maps, select Export System Map & Anchors. This could take a while so be prepared to wait for 30-60 seconds while the map is exported. Once it’s complete, the file will be downloaded in your browser.

To import maps and anchors, select Upload a map file and Upload an anchor file respectively and select a map or anchor file that you’ve already exported. The uploaded map or anchor file can come from any other HoloLens device.

[!NOTE] On HoloLens, it’s also possible to import and export the spatial mapping data base. However, this doesn’t work on non-HoloLens devices.

Mixed Reality Capture

Mixed Reality Capture page in Windows Device Portal on Microsoft HoloLens
Mixed Reality Capture page in Windows Device Portal on Microsoft HoloLens

[!IMPORTANT] Device Portal is for use by developers, not in deployed applications. Settings configured in the Device Portal apply to the entire device and persist through reboots. Any settings modified in the Device Portal will apply to mixed reality captures and apps.

Use the Mixed Reality Capture page to save media streams from the HoloLens.

All settings on this page apply to captures taken using Windows Device Portal. Some additionally apply to System MRC, including start menu, hardware buttons, global voice commands, Miracast, and custom MRC Recorders.

Setting Applies to System MRC Applies to Custom MRC Recorders
Holograms No No
PV camera No No
Mic Audio No No
App Audio No No
Render from Camera Yes Yes (can be overridden)
Live preview quality No No
Audio Media Category Yes No
App Audio Gain Yes Yes (can be overridden)
Mic Audio Gain Yes Yes (can be overridden)
Capture Profile Yes No
Photo Resolution Yes No
Video Resolution and Frame-rate Yes No
Video Stabilization Buffer Yes Yes (can be overridden)

[!NOTE] There are limitations to simultaneous MRC:

Performance Tracing

Performance Tracing page in Windows Device Portal on Microsoft HoloLens
Performance Tracing page in Windows Device Portal on Microsoft HoloLens

Capture Windows Performance Recorder (WPR) traces from your HoloLens.

To stop the trace, select the stop link. Stay on this page until the trace file has completed downloading.

Captured ETL files can be opened for analysis in Windows Performance Analyzer.

For a more in-depth look at performance tracing, see the HoloLens performance tracing how to.

Processes

Processes page in Windows Device Portal on Microsoft HoloLens
Processes page in Windows Device Portal on Microsoft HoloLens

Shows details about currently running processes. This includes both apps and system processes.

System Performance

System Performance page in Windows Device Portal on Microsoft HoloLens
System Performance page in Windows Device Portal on Microsoft HoloLens

Shows real-time graphs of system diagnostic info, like power usage, frame rate, and CPU load.

These are the available metrics:

Apps

Apps page in Windows Device Portal on Microsoft HoloLens
Apps page in Windows Device Portal on Microsoft HoloLens

Manages the apps that are installed on the HoloLens.

App Crash Dumps

App Crash Dumps page in Windows Device Portal on Microsoft HoloLens
App Crash Dumps page in Windows Device Portal on Microsoft HoloLens

This page allows you to collect crash dumps for your side-loaded apps. Check the Crash Dumps Enabled checkbox for each app for which you want to collect crash dumps. Return to this page to collect crash dumps. Dump files can be opened in Visual Studio for debugging.

File Explorer

File Explorer page in Windows Device Portal on Microsoft HoloLens
File Explorer page in Windows Device Portal on Microsoft HoloLens

Use the file explorer to browse, upload, and download files. You can work with files in the Documents folder, Pictures folder, and in the local storage folders for apps that you deployed from Visual Studio or the Device Portal.

Kiosk Mode

[!NOTE] Kiosk mode is only available with the Microsoft HoloLens Commercial Suite.

Kiosk mode page in Windows Device Portal on Microsoft HoloLens

Check the Set up HoloLens in kiosk mode article in Windows IT Pro Center for up-to-date instructions on enabling kiosk mode via Windows Device Portal.

Logging

Logging page in Windows Device Portal on Microsoft HoloLens
Logging page in Windows Device Portal on Microsoft HoloLens

Manages real-time Event Tracing for Windows (ETW) on the HoloLens.

Check Hide providers to show the Events list only.

Select or tap Enable to start tracing. The provider is added to the Enabled Providers dropdown.

For example, you can specify the criteria (Task Name contains ‘Foo’ or ‘Bar’) AND (Text contains ‘error’ or ‘warning’)

Simulation

Simulation page in Windows Device Portal on Microsoft HoloLens
Simulation page in Windows Device Portal on Microsoft HoloLens

Allows you to record and play back input data for testing.

Networking

Networking page in Windows Device Portal on Microsoft HoloLens
Networking page in Windows Device Portal on Microsoft HoloLens

Manages Wi-Fi connections on the HoloLens.

PowerThermalSDK Test

PowerThermalSDK Test page in Windows Device Portal on Microsoft HoloLens
PowerThermalSDK Test page in Windows Device Portal on Microsoft HoloLens

For use with the PowerThermalNotification SDK. See Managing power and thermals.

Use this page to monitor and control the mitigation levels and thermal scores used with the SDK. The page also provides details on which peripherals are having their mitigations suppressed by active applications.

[!NOTE] This page is only available in OS builds that support the PowerThermalNotification SDK

Virtual Input

Virtual Input page in Windows Device Portal on Microsoft HoloLens
Virtual Input page in Windows Device Portal on Microsoft HoloLens

Sends keyboard input from the remote machine to the HoloLens.

Click or tap the region under Virtual keyboard to enable sending keystrokes to the HoloLens. Type in the Input text textbox and click or tap Send to send the keystrokes to the active app.

Device Portal REST APIs

Everything in the Device Portal is built on top of REST APIs that you can optionally use to access the data and control your device programmatically.

Troubleshooting

How to fix the “It’s lonely here” message

[!NOTE] Going from a HoloLens 2 to HoloLens (1st gen) may cause the pages to become lonely if used on the HoloLens 2 prior to use on the HoloLens (1st gen).

It's lonely here message in Device Portal page

  1. Select Reset layout from the top-left Menu:

Selecting Reset layout from the Device Portal menu

  1. Click Reset layout under the Reset workspace heading. The portal page will automatically refresh and display your content.

Selecting Reset layout from the Reset workspace page