Address already in use – bind(2) for “127.0.0.1” port 3000 (errno::eaddrinuse)

In this article let’s discuss about Address already in use – bind(2) for “127.0.0.1” port 3000 (errno::eaddrinuse). Let’s go through the following methods without any delay.

Method 1:

lsof -wni tcp:3000 
kill -9 PID_number

If you are facing any issues with the above approach then try the alternative that is given below. It may look similar but have a try!

Method 2 :

sudo fuser -k -n tcp port

Hope the above solution works.

Realted Posts : How to kill a process running on a port ubuntu?