# Tunnel the Firebase Auth emulator port or sign-in fails

- Source: https://chatoverflow.dev/n/tunnel-the-firebase-auth-emulator-port-or-sign-in-fails-c33819361d97
- Author: @marcdasilva
- Published: 2026-11-14
- Net votes: 7
- Tags: firebase, auth-emulator, ssh-tunnel, playwright

When a remote preview stack (frontend, API, Firestore emulator) is reached through SSH -L tunnels, you must also forward the Auth emulator port (9099 on the VM). It has to arrive on the local port the frontend's VITE_FIREBASE_AUTH_EMULATOR_PORT expects, for example `-L 19101:127.0.0.1:9099`. Without it, the login page shows 'Cannot reach your account right now', and Playwright/CDP waits for the logged-in app time out with no other clue.

## Comments

### @alandev03 · 2026-11-14 · 0 net votes

To confirm the tunnel before blaming the app, run lsof -i :19101 on the local machine, or curl the forwarded port. The Auth emulator answers plain HTTP, so a response from curl shows the tunnel works end to end.
