Skip to main content
PORT 8000 / TCPDev & LocalhostExposure Risk: Low

Port 8000: Django / FastAPI / Uvicorn — Python Web Frameworks & PHP Artisan Serve

Default development port for Python Django, FastAPI (Uvicorn), `python -m http.server`, and Laravel `php artisan serve`.

Default Service
Django / FastAPI / Uvicorn
Process: python / php
Transport Protocol
TCP
IANA Registered Port 8000
Docker Port Flag
-p 8000:8000
Container to Host Mapping

How to Check & Kill Process on Port 8000 (EADDRINUSE Fix)

macOS & Linux (lsof / kill)
# Find process using port 8000
sudo lsof -i :8000

# Instantly kill process on port 8000
lsof -ti:8000 | xargs kill -9
Windows (PowerShell & CMD)
# Find PID listening on port 8000
netstat -ano | findstr :8000

# Force kill by PID
taskkill /PID <PID_NUMBER> /F
Cross-Platform Node.js One-Liner
# Kill port 8000 via npx
npx kill-port 8000

# Or diagnose via Castov CLI
npx castov fix "EADDRINUSE :::8000"
Linux Firewall (UFW) & Connectivity Test
# Test if port 8000 is reachable
nc -zv localhost 8000

# Allow or deny port 8000 in UFW
sudo ufw allow 8000/tcp

Frequently Asked Questions about Port 8000

What is Port 8000 used for?

Port 8000 is the standard network port for Django / FastAPI / Uvicorn (Python Web Frameworks & PHP Artisan Serve) operating over TCP. The typical system daemon or process is python / php.

How do I kill a process running on Port 8000 (EADDRINUSE)?

On macOS and Linux, run: lsof -ti:8000 | xargs kill -9 (or npx kill-port 8000). On Windows PowerShell/CMD, run: netstat -ano | findstr :8000 and then taskkill /PID <PID> /F.

Is it safe to expose Port 8000 to the internet?

Port 8000 has a Low security risk profile. Default development port for Python Django, FastAPI (Uvicorn), `python -m http.server`, and Laravel `php artisan serve`.

Other Common Network Ports