How to Embed a Localhost Web Page in PowerPoint

A computer monitor showing a local terminal session

Summary

You can embed and interact with a local web development server (localhost or 127.0.0.1) directly inside PowerPoint by exposing it through a secure Cloudflare Tunnel and loading the generated HTTPS address into Web Viewer 2.0. Present live dashboards, prototypes, and internal tools without switching windows.

Direct local addresses like http://localhost:8080 fail inside Office add-ins due to browser security restrictions, while free ngrok tunnels stall on an anti-phishing interstitial. Follow the four steps below to launch a quick Cloudflare Tunnel and embed your local site into PowerPoint.

Before you start

Embed your local site with Cloudflare Tunnel

  1. Open your terminal and run cloudflared pointing to your local port:
npx cloudflared tunnel --url http://localhost:8080

Cloudflare creates a temporary tunnel on trycloudflare.com without requiring an account or authentication token. Locate the generated public HTTPS URL in your terminal output.

Terminal window running cloudflared tunnel with the public trycloudflare.com URL highlighted
  1. In PowerPoint, click the www button at the top left of Web Viewer. Its tooltip is Loads a web page from a URL.
The www button highlighted in the top-left toolbar of Web Viewer in PowerPoint
  1. Paste the trycloudflare.com address into URL (1), then click Load (2).
The Cloudflare Tunnel URL entered in Web Viewer, with numbered callouts for URL input and Load button
  1. Once your local page loads, click Present in PowerPoint to interact with your application live during Slide Show.
The local web dashboard running live inside PowerPoint Slide Show

Comparing localhost embedding methods

The table below compares the three primary approaches developers use to test local pages inside PowerPoint:

Method Protocol & SSL Interstitial Screen Works in Web Viewer Key Requirement
Cloudflare Tunnel Public HTTPS (trusted edge certificate) None Yes Run npx cloudflared alongside your local server
ngrok (Free Tier) Public HTTPS (trusted edge certificate) Anti-phishing interstitial warning No Third-party cookies blocked in iframes prevent bypassing the warning
Direct Localhost (127.0.0.1) Local HTTP or self-signed HTTPS None No Blocked by Mixed Content, Local Network Access (LNA), and untrusted certs

Why free ngrok fails in Web Viewer

ngrok provides public HTTPS tunnels, but its free tier fails inside Web Viewer due to two cascading browser restrictions:

Why direct localhost addresses fail

Three browser security standards block direct local addresses in Office add-ins:

Local server configuration checklist

Before your presentation, verify your local application headers and terminal session:

FAQ

Does Cloudflare Quick Tunnel require an account or credit card?

No. Running npx cloudflared tunnel --url http://localhost:8080 creates a temporary tunnel on trycloudflare.com without any account registration, payment, or configuration files.

Can I interact with my local application during Slide Show?

Yes. Web Viewer 2.0 maintains a live browser session inside PowerPoint. Buttons, form inputs, dropdowns, and WebSocket connections continue to function during your presentation.

Can my organization deploy Web Viewer for internal demos?

Yes. See Web Viewer plans and licensing. If your organization manages Microsoft 365 add-in access centrally, an administrator can deploy Web Viewer through the Microsoft 365 admin center.

Need help?

Still stuck? Contact Web Viewer support and we will help you get your site running.