DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk3 min

How to Pair HoloLens With Visual Studio (PIN Pairing, Wi-Fi and USB)

Enable Developer Mode, tap Pair under Settings > Update > For Developers, and enter the PIN in Visual Studio on first deployment. Here are the Wi-Fi and USB steps and fixes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Turn on Developer Mode on the HoloLens, then open Settings > Update > For Developers and tap Pair. When Visual Studio asks for a PIN during your first deployment, type in the PIN shown on the headset. After that, the PC can deploy to the device without asking again. Each additional development PC needs its own pairing.

What you need before you pair

Microsoft’s tool installation guidance for mixed reality development lists the following for the PC. The page showed a last-updated date of January 2023, so check Microsoft Learn for current versions.

As an Amazon Associate I earn from qualifying purchases.

  • Visual Studio 2022.
  • A Windows 10 or Windows 11 SDK.
  • The Universal Windows Platform development workload. Add USB Device Connectivity inside it if you plan to deploy over USB.
  • The .NET desktop development and Desktop development with C++ workloads, which the page also lists.
  • Game development with Unity, if your project is built in Unity.

Step-by-step: pair the headset with your PC

1. Enable Developer Mode on the HoloLens

On the device, open Settings > Update > For developers and turn on Developer Mode. If the device runs Windows Holographic 21H1 or newer, Microsoft’s Visual Studio guide also says to enable Device discovery.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

In a multi-user setup, Developer Mode may be unavailable to anyone who isn’t an administrator or the device owner (see troubleshooting below).

#1 Best Overall
Sale
Meta Quest Pro
  • Meta Quest Pro unlocks new perspectives in work, creativity, and collaboration.
  • Multitask with ease with multiple resizable screens so you can organize tasks, work on new ideas or message with your friends.
  • World class counter balanced ergonomics and our sleekest design let you wear the headset for longer in premium comfort.
  • High resolution mixed reality passthrough uses full-color sensors to let you see and engage with the physical world around you, even as you connect, work and play in virtual spaces.
  • Share your true emotions and reactions with real time natural avatar expressions. Meta Avatars translate your natural facial expressions into VR so you can bring your true personality to meetings and gatherings with friends.

2. Choose how the PC will reach the headset

Method Visual Studio target What to enter Best for
Wi-Fi Remote Machine The HoloLens IP address, typed manually (Microsoft recommends this over automatic detection) HoloLens 1, or any device when a cable is inconvenient
USB Device No address needed in Visual Studio; the USB network IP is used for Device Portal HoloLens 2 with a USB-C cable

For USB networking, Microsoft’s Device Portal guidance recommends UsbNcm, which HoloLens 2 supports by default. It says IpOverUsb is no longer recommended, and it recommends Wi-Fi for HoloLens 1. Don’t apply the HoloLens 2 UsbNcm steps to first-generation hardware.

3. Find the IP address (Wi-Fi)

On the headset, look under Settings > Network & Internet for the Wi-Fi connection’s IP address. In Visual Studio, set the debug target to Remote Machine and enter that address.

Rank #2
Sale
Microsoft Surface Dock 2 (Renewed)
  • Instantly turn your Surface into a desktop PC with the next-gen ports in new Surface Dock 2., Simply plug in the Surface Connect cable to charge your device and access external monitors, a keyboard, mouse, and more.
  • 199w power supply; longer Surface Connect cable (80 cm)., Supports dual 4K at 60Hz
  • 2 front-facing USB-C, 2 rear-facing USB-C (gen 2), 2 rear-facing USB-A, 3.5mm in/out audio jack, 1 gigabit Ethernet, Security lock support (Kensington compatible), Compatibility: Surface Book 3 (13.5" and 15"), Surface Pro 7 Surface Pro X, Surface Laptop 3 (13.5”and 15”) ,Surface Go 2
  • Compatibility: Supports dual 4K monitors at 30Hz: Surface Pro 6 , Surface Pro (5th Gen), Surface Laptop 2, Surface Laptop (1st Gen), Surface Go, Surface Book 2 (13.5” and 15”), Not compatible with:Surface Pro 4, Surface Pro 3, Surface Book (1st Gen)
  • Dimensions: 5.12" x 2.75" x 1.18" (130 mm x 70 mm x 30 mm), Weight: 1.13 lb (515 g)

4. Connect by USB (HoloLens 2, optional)

Connect the PC and headset with a USB-C cable. With Device discovery on and a supported Windows Holographic version, the UsbNcm IP appears in the developer settings or in Device Portal. Running winappdeploycmd devices on the PC is another documented way to list it. Microsoft doesn’t specify a cable brand or model; use one that carries data, not just power.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

5. Pair on the first deployment

  1. Start a deployment from Visual Studio. It prompts for a PIN.
  2. On the HoloLens, go to Settings > Update > For Developers and tap Pair. A PIN appears.
  3. Keep that dialog open and enter the PIN in Visual Studio.
  4. When pairing completes, dismiss the PIN dialog on the HoloLens.

Microsoft’s guide describes the result this way: “This PC is now paired with the HoloLens and you can deploy apps automatically.”

6. Build and deploy

  • Set the build architecture to ARM or ARM64 for a physical HoloLens 2, per Microsoft’s guide.
  • Debug > Start debugging deploys and attaches the debugger.
  • Build > Deploy Solution deploys without debugging.

Pairing more PCs and clearing pairings

Pairing is per PC. Repeat the PIN process on each additional development machine. To remove existing pairings, tap Clear on the same For Developers page in Settings.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Where Device Portal fits in

Device Portal is optional for Visual Studio deployment. It is a browser-based tool for managing the headset over Wi-Fi or USB, and Microsoft says it isn’t meant for use in deployed organizational applications. Its first connection can show a certificate warning because the device uses a self-signed certificate. Microsoft documents downloading and trusting the device-specific certificate, which you should do only on a trusted network. This warning is unrelated to the Visual Studio PIN pairing.

Quick Recap

SaleBestseller No. 1
Meta Quest Pro
Meta Quest Pro
Meta Quest Pro unlocks new perspectives in work, creativity, and collaboration.
$799.99
SaleBestseller No. 2
Microsoft Surface Dock 2 (Renewed)
Microsoft Surface Dock 2 (Renewed)
199w power supply; longer Surface Connect cable (80 cm)., Supports dual 4K at 60Hz; Dimensions: 5.12" x 2.75" x 1.18" (130 mm x 70 mm x 30 mm), Weight: 1.13 lb (515 g)
$85.89
Rank #4
Lenovo Legion Glasses Gen 2 - Micro-OLED Personal Wearable Monitor for Gaming & Movies, FHD 120Hz Plug-and-Play Display for Lenovo Legion Go & USB-C Devices, High-Fidelity Audio & Privacy
  • Portable Micro-OLED Display for Gaming & Movies: Enjoy vivid colors and high contrast on the go with Lenovo Legion Glasses Gen 2. This portable display with micro-OLED tech offers an immersive FHD viewing experience anywhere, perfect for gaming and entertainment
  • Plug-and-Play Instant Setup: Simply plug the Legion Glasses into any device that has a USB-C connector that supports DP video output (specifically USB type-C with DP-Alt mode) for an instant, seamless connection. No need for custom software—just connect and enjoy your content like a traditional monitor
  • Plug-and-Play Instant Setup: Simply plug the Legion Glasses into any device with a full-function USB-C port for an instant, seamless connection. No need for custom software—just connect and enjoy your content like a traditional monitor
  • Compatible with Multiple Devices: These glasses are compatible with a wide range of devices including Lenovo Legion Go, laptops, Steam Deck, and more. They support most full-function USB-C devices with DP video output function for maximum versatility
  • Comfortable & Durable Design: Designed for long-term wear, these glasses feature adjustable nose pads and an included carry case. They also come with a prescription lens frame (prescription lenses sold separately), making them comfortable for everyone

Troubleshooting

  • Developer Mode is grayed out: in a multi-user configuration you may not be the device owner. Ask the owner to enable it, or ask IT to set the relevant developer-unlock policy through MDM.
  • USB deployment fails: check that your Visual Studio install includes USB Device Connectivity, which Microsoft lists as required for USB deployment and debugging. Re-run the Visual Studio Installer to add it.
  • Headset not detected over Wi-Fi: type the IP address into the Remote Machine settings instead of relying on auto-detect.
  • “Unable to start debugging” with “Operation not supported. Unknown error: 0x80070057” on HoloLens 2: this occurs when debugging an installed UWP app. Microsoft suggests renaming the package or uninstalling the app from the device.
  • No PIN prompt appears or pairing was lost: use Clear in For Developers, then start a new deployment and pair again. This is a reasonable general reset step rather than a documented fix for a specific error.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Crashes, No Sound, or Screen Glitches?Free driver scan
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.