This guide explains how to install and manage the Print Proxy Server as a Windows service.
- Node.js (v18 or higher) installed on Windows Server
- Administrator privileges to install/manage Windows services
- Print server running on
10.0.1.12:3000
- Right-click on
install-service.bat - Select "Run as administrator"
- The script will:
- Install dependencies
- Build the project
- Install and start the Windows service
- Open Command Prompt as Administrator
- Navigate to the project directory
- Run these commands:
npm install npm run build npm run service:install
npm run service:start # Start the service
npm run service:stop # Stop the service
npm run service:restart # Restart the service
npm run service:uninstall # Remove the servicenode service.js start
node service.js stop
node service.js restart
node service.js uninstall- Open Services (
services.msc) - Find "PrintProxyServer"
- Right-click to start/stop/restart
- Service Name:
PrintProxyServer - Display Name:
Proxy server for high-performance print server - Port:
8080 - Target:
http://10.0.1.12:3000 - Startup Type: Automatic
Service logs are automatically created in:
- Application logs: Windows Event Viewer
- Service wrapper logs:
daemon/folder (created automatically)
- Check if port 8080 is available
- Verify Node.js is in system PATH
- Check Windows Event Viewer for errors
- Ensure print server at 10.0.1.12:3000 is accessible
- Run installation scripts as Administrator
- Check Windows firewall settings
- Verify network connectivity to print server
npm run service:restart- Right-click on
uninstall-service.bat - Select "Run as administrator"
npm run service:uninstallCheck if the service is running:
- Services Manager: Look for "PrintProxyServer"
- Command Line:
sc query PrintProxyServer - Browser: Visit
http://localhost:8080/proxy-health
The proxy server will:
- Listen on:
0.0.0.0:8080(all interfaces) - Forward to:
http://10.0.1.12:3000 - Accept from: Origins configured in
.envfile
Make sure Windows Firewall allows connections on port 8080.