← All field notes
CTO notes 1 min read

Check for Local Applications Using Port 8080

The error message indicates that the port 8080 is already in use on your local machine. This could happen if another application or container is running and has bound to […]

The error message indicates that the port 8080 is already in use on your local machine. This could happen if another application or container is running and has bound to port 8080. Here’s how you can resolve the issue:


1. Check for Running Containers

Run the following command to check if any Docker containers are already running and using port 8080:

docker ps
  • Look for containers that expose port 8080.
  • If found, stop the container using:
docker stop <container_id>

2. Check for Local Applications Using Port 8080

If no Docker container is using port 8080, check if a local application is bound to this port:

On Linux or macOS:

sudo netstat -tuln | grep 8080

On Windows:

netstat -ano | findstr :8080
  • Identify the process ID (PID) using port 8080 and terminate it if necessary:
    • On Linux/macOS: kill -9 <PID>
    • On Windows: taskkill /PID <PID> /F
AS

Written by Alan Son

CTO judgment, grounded in delivery.

I build commercial AI products and help founders turn ambitious technical ideas into reliable production systems.

More about my work

Need an experienced technical partner?

Let’s work out the right next move.