Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
October 25, 2022 12:40 pm GMT

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:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To