---
title: "Local server previews | microManager docs"
description: "When a terminal or run script prints an address of this computer, open it in your browser or preview it in the app."
url: "https://micromanager.win/docs/local-preview"
updated: "2026-11-12"
---

# Local server previews

When a run script or a terminal prints the address of a server on this computer, the workspace offers to open it in your browser or in a preview panel inside the app. Only http and https addresses of this computer are offered.

Updated 12 November 2026

## When does microManager offer to open a server?

When a **Run** script or a terminal prints an `http://` or `https://` address of this computer, a bar appears above the chat. It shows the address as text, with **Open in browser** and **Preview**. Before any address is printed, or after you dismiss the last one, the bar is hidden and the workspace stays open.

Only these hosts are offered, and only with an explicit port: `localhost`, `127.0.0.1`, and `[::1]`. Wildcard bind addresses such as `0.0.0.0` are not offered. An address with a user name or a password is ignored. A public host that only looks local (`localhost.example.com`) is ignored. Terminal output is untrusted: microManager never treats a printed line as a command or a path.

The whole printed address must survive URL parsing unchanged. Include the root slash, for example `http://localhost:5173/`, and put spaces around the address. Paths, queries and fragments stay as printed. Missing slashes, default or padded ports, uppercase hosts, shortened numeric hosts and normalized paths are refused. A trailing dot or bracket is kept if it is part of a valid path; it is never trimmed to guess what the writer meant.

Only the newest eight distinct addresses are kept per workspace, even when a terminal replays a long log. Repeated addresses already in the list appear once.

microManager reads terminal output while the drawer is hidden. It waits for the end of the address, even when the program prints it in pieces, and ignores surrounding color and cursor escapes. Dismissing an offer keeps it dismissed when you leave and return to the workspace.

## What is the preview panel?

**Preview** opens the address in the workspace’s center. The bar above the page has **Back**, **Forward**, **Reload**, the address as text, **Open in browser**, and **Close preview**. Opening a dialog or menu hides the page so it cannot cover the app’s controls. Its place says **The preview is hidden while a dialog is open**; closing the last dialog or menu brings the page back. The page stays in its panel when you change the app’s zoom or resize it. Closing the panel, leaving the workspace, or quitting destroys that view.

The preview is a separate web view. It has its own storage, no access to the app’s page, files or protocol, and no Node. Every permission request (camera, microphone, location, notifications, the clipboard, and the rest) is refused. A download is refused. A page cannot open your system browser itself. A navigation, redirect, frame or new window to another computer is refused. The app’s own bar says **This page tried to open \<host>**, shows the whole address, and offers **Open in browser** when that address is allowed. Only clicking that button opens it. `file:` and the app’s own address never load.

If a page cannot load, the preview explains why and offers **Try again**. Start the server again if it stopped. An invalid certificate stays refused; fix it on the server before retrying. A redirect to another local server updates the address; if that server is stopped, **Try again** retries that destination. A refused navigation retries the last local address.

External fonts, scripts, images and API requests remain allowed. Their hosts receive your IP address and the data the page sends; see the [privacy policy](https://micromanager.win/privacy). The local server already runs with network access; its preview has a separate, empty, sandboxed session. Blocking those requests would break pages that use a font service, CDN or API.

## How do I open it in my browser instead?

**Open in browser** on the offer, or the same button on the preview. That uses the same rule as other links in the app: https, or http on this computer, with no user name or password.

## Where to go next

- [Setup, run and archive scripts](https://micromanager.win/docs/scripts)
- [Terminal in the center](https://micromanager.win/docs/center-terminal)
