@echo off title Etqan QR Verify - Server + Tailscale Funnel setlocal set "ROOT=D:\Projects\mawared-plus\public_verify" set "PORT=8088" set "PUBURL=https://etqan.tail1b3c49.ts.net/v.html" echo ============================================================ echo Etqan QR / Verify service echo ============================================================ echo. cd /d "%ROOT%" REM ---- locate tailscale (PATH or default install) ---- set "TS=tailscale" where tailscale >nul 2>&1 || set "TS=C:\Program Files\Tailscale\tailscale.exe" REM ---- 1) local proxy server on port 8088 (own window, stays open) ---- echo [1/2] Starting serve_verify.py on 127.0.0.1:%PORT% ... start "Etqan Verify Server (%PORT%)" cmd /k python "%ROOT%\serve_verify.py" REM give the server a moment to start timeout /t 2 /nobreak >nul REM ---- 2) expose the port publicly via Tailscale Funnel ---- echo [2/2] Enabling Tailscale Funnel on port %PORT% ... "%TS%" funnel --bg %PORT% echo. echo ---------------- Funnel status ---------------- "%TS%" funnel status echo ----------------------------------------------- echo. echo Done. The QR now works via: echo %PUBURL% echo. echo - Keep the "Etqan Verify Server" window OPEN (closing it stops the service). echo - To stop the Funnel later: "%TS%" funnel reset echo. pause endlocal