Skip to content

Instantly share code, notes, and snippets.

@n1ckfg
Created July 31, 2026 14:18
Show Gist options
  • Select an option

  • Save n1ckfg/5fa6fb52c9805edec722895c70d7903d to your computer and use it in GitHub Desktop.

Select an option

Save n1ckfg/5fa6fb52c9805edec722895c70d7903d to your computer and use it in GitHub Desktop.
@echo off
rem set PORT=8080
rem :findport
rem netstat -ano | findstr ":%PORT% " | findstr "LISTENING" >nul 2>&1
rem if %errorlevel%==0 (
rem set /a PORT+=1
rem goto findport
rem )
rem start http://127.0.0.1:%PORT%
rem http-server -p %PORT%
start http://127.0.0.1:8080
node app.js
@pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment