Skip to content

Instantly share code, notes, and snippets.

@RikoKami
Last active February 16, 2023 03:35
Show Gist options
  • Save RikoKami/e7d4b286ec391136018dadc02e95a3f8 to your computer and use it in GitHub Desktop.
Save RikoKami/e7d4b286ec391136018dadc02e95a3f8 to your computer and use it in GitHub Desktop.
destroying ports in OS
# Windows
netstat -ano | findstr 8085
# Proto End Local End Externo Estado PID
TCP 0.0.0.0:8085 0.0.0.0:0 LISTENING 6000
TCP 127.0.0.0:8085 127.0.0.0:61588 CLOSE_WAIT 6000
TCP 127.0.0.0:8085 127.0.0.0:8085 FIN_WAIT_2 27340
TCP [::]:8085 [::]:0 LISTENING 6000
taskkill /PID 6000 /f
## Bash
taskkill //PID 6000 //f
# Linux
kill -9 $(lsof -t -i:8085)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment