← Back to Files
start-server.bat
@echo off
title KaiChat Server
echo ============================================
echo Starting KaiChat Server
echo ============================================
echo.
:: Set environment
set ASPNETCORE_ENVIRONMENT=Development
set ASPNETCORE_URLS=
:: Change to the publish directory where the compiled app lives
cd /d "%~dp0publish"
:: Launch the server
echo Server will start at http://localhost:5200 and http://^<this-device-ip^>:5200
echo If .kaichat-lan.pfx exists, HTTPS will also start at https://^<this-device-ip^>:5201
echo.
dotnet KaiChat.dll
:: If the server stops, pause so the user can see the output
echo.
echo Server has stopped.
pause