Port 4200 — Angular dev server
TCP registered
What runs on port 4200
The default port for `ng serve`.
Security considerations
Development only.
Checking whether something is listening
# Linux / macOS — what is bound to the port
sudo lsof -i :4200
sudo ss -lntp | grep :4200
# Windows
netstat -ano | findstr :4200
Get-NetTCPConnection -LocalPort 4200
# is it reachable from outside?
nc -zv example.com 4200
curl -v telnet://example.com:4200
Freeing the port
# find the process, then stop it
sudo lsof -ti :4200 | xargs kill # Linux / macOS
netstat -ano | findstr :4200 # note the PID, then:
taskkill /PID <pid> /F # Windows