Freeing an Occupied Port on Windows (GitBash)

  1. Check which process holds the port:

    netstat -ano | findstr :<port>
    
  2. Find the process name:

    tasklist | findstr <PID>
    
  3. Kill it:

    taskkill //PID <PID> //F
    
  4. Run as Administrator if access is denied. If the port stays stuck, reboot or disable conflicting drivers/services.

Comments

  1. Markdown is allowed. HTML tags allowed: <strong>, <em>, <blockquote>, <code>, <pre>, <a>.