23 lines
852 B
Batchfile
23 lines
852 B
Batchfile
@echo off
|
|
rem NetDesk local demo: server + host + browser viewer, all on this PC.
|
|
rem For a first look / testing. Real use = VPS server + this host + remote viewer.
|
|
setlocal
|
|
cd /d "%~dp0.."
|
|
set PY=%~dp0..\.venv\Scripts\python.exe
|
|
if not exist "%PY%" set PY=python
|
|
|
|
echo [netdesk] starting server on http://127.0.0.1:8443 ...
|
|
start "NetDesk Server" "%PY%" server\netdesk_server.py --port 8443
|
|
timeout /t 2 /nobreak >nul
|
|
|
|
echo [netdesk] starting host agent (finds server URL from its config) ...
|
|
start "NetDesk Host" "%PY%" host\netdesk_host.py --server ws://127.0.0.1:8443/ws
|
|
|
|
timeout /t 3 /nobreak >nul
|
|
echo [netdesk] opening viewer in browser...
|
|
start http://127.0.0.1:8443/
|
|
echo.
|
|
echo Your host ID and password are in %%APPDATA%%\NetDesk\config.json
|
|
echo (password is printed by the host on its FIRST run only; use --set-password to change)
|
|
endlocal
|