Skip to content
Home » Bind failed: Address already in use

Bind failed: Address already in use

To solve Bind failed: Address already in use error then you need to modify the port number or terminate the process running on the current port.

The error usually indicates that the port you are attempting to open is already in use by another application. Use netstat to determine which ports are open and then connect to one of them.

Try running below command to list all the application processes which are running currently:

netstat -tulpn

Then use kill <pid> to terminate the process. Then try to run again or you the port which is not used by any process currently. Also have look at below link to get to know more details.

Similar error:
Rails : Address already in use – bind(2) for port (Errno::EADDRINUSE)