Skip to content
Documentation

Connection Help

Troubleshooting

Find what you're seeing, then follow the fix. Most problems come down to the app or the share command not running.

Your local app isn't running

You see: “We couldn't find a website running on port 5173. Start your app and try again.”

The CLI checks your own computer before sharing. Start your dev server (for example npm run dev), wait until it says it's ready, and check that http://localhost:5173 opens in your browser. Then run the share command again.

Wrong port

You see: the same message, or the preview shows a different app than you expected

Use the port your dev server prints, not the framework's usual one: it changes when the default is busy. Vite might print Local: http://localhost:5174/ — then share 5174.

$ localians share 5174

Login expired or revoked

You see: “Your login on this computer expired or was revoked. Let’s sign in again.”

CLI logins last 90 days and can be revoked in Settings → CLI. The share command starts a new sign-in automatically: approve it in your browser and sharing continues.

Authorization not completed

You see: “Waiting for you to approve it…” never finishes, or “The login request expired before it was approved.”

  • Open the link the CLI printed, check that the code matches your terminal, and click Authorize CLI.
  • Make sure you're signed in to the right Localians account in that browser.
  • The request expires after 10 minutes. Run the command again for a fresh code.
  • No browser opened? Copy the printed link into one yourself.

Visitors see a password page

You see: “This preview is password protected”, “That password isn’t right”, or “Too many attempts”

  • The project is password protected. Send your client the password (separately from the link).
  • Forgot it? Set a new one on the project page under Preview access. Everyone, including you, enters the new one.
  • After several wrong tries, that visitor has to wait a few minutes. To make the preview public instead, choose Public in Preview access.

Setup code used or expired

You see: “That setup code was already used” or “…expired. Copy a fresh command from the dashboard.”

Commands copied from Share App include a one-time code that works once, within 30 minutes. Reload the Share App page and copy the new command — or run localians share <port> without --setup.

“This preview is starting”

You see: a Localians page with HTTP 503

The share command connected, but Localians couldn't yet confirm who may open the preview, so it stays closed rather than risk being public. It clears within about 20 seconds; if it doesn't, the Localians service may be having trouble — try again shortly.

Usage limits

You see: “You can share up to 5 apps at once” or “Daily bandwidth limit reached”

Stop a preview you no longer need, or wait until the daily bandwidth limit resets at midnight UTC. The limits keep the service fast and prevent abuse.

Connection lost

You see: “Connection lost… Reconnecting in 3s…”, or Reconnecting in the dashboard

Your computer's connection to Localians dropped (sleep, Wi-Fi change, VPN switch). The CLI reconnects by itself and keeps the same link while it can. If it keeps failing, check your internet connection, then stop and restart the share command.

The preview shows as offline

You see: Reconnecting, Disconnected or Expired in Live Previews

  • Reconnecting — the share command is trying to reconnect. Make sure it's still running and your computer is awake.
  • Disconnected / Revoked / Expired — that share has ended for good and its link won't come back. Share again for a new link.

Hot reload doesn't work through the preview

Next.js needs your preview domain in allowedDevOrigins (see the Next.js guide). For other frameworks, check that you didn't pass --host-header preserve without allowing the preview host.

Firewall, proxy or VPN interference

You see: “Can’t reach Localians at …”, or repeated “Timed out connecting to the Localians gateway.”

The CLI only makes outgoing HTTPS connections — you never need to open ports on your router. Some company networks, proxies or VPNs block the long-lived connection it uses. Try another network or disconnect the VPN; if that fixes it, ask your network admin to allow outgoing HTTPS (including WebSocket-style upgrades) to the Localians servers.

npm package not found / command not found

You see: “npm error 404 Not Found” for npx localians, or “localians is not recognized”

The package isn't published to npm during the beta, so npx localians can't work yet. Install the beta from a Localians checkout (see the CLI guide). If localians still isn't found after npm link, make sure npm's global folder is on your PATH:

$ npm prefix -g

Certificate warnings during local development

You see: “self-signed certificate in certificate chain” in the CLI, or a browser privacy warning

This only happens when the Localians server runs on your own machine with its development certificate. Trust the development CA (see CLI guide → certificates) instead of clicking through warnings. Real deployments use publicly trusted certificates.

Still stuck? Run the command with -v to see each request, and contact us with what it prints (it never prints your access token).