An Interest In:
Web News this Week
- April 25, 2024
- April 24, 2024
- April 23, 2024
- April 22, 2024
- April 21, 2024
- April 20, 2024
- April 19, 2024
October 25, 2022 12:40 pm GMT
Original Link: https://dev.to/kenzysc/how-to-stop-localhost-server-running-on-multiple-ports-3hab
How to stop Localhost server running on multiple ports.
I ran into a situation where I had multiple localhost ports. This is my fault as I failed to clearly close them.
So what do we do? A very simple way is to run the following command:
npx kill-port <port>
replace port with the port you want to close without the bracket.
Note that if you don't have the kill-port package installed, you would be prompted to install it.
There you go. Make sure you close your servers with Ctrl + C, unless stated otherwise.
Original Link: https://dev.to/kenzysc/how-to-stop-localhost-server-running-on-multiple-ports-3hab
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To