What is using this port?
Shows the program and PID listening on or connected to the port.
lsof -i :Find what’s using a port and stop it, look up DNS, check your public IP, test connections, inspect HTTP headers and check when an SSL certificate expires.
15 commands
Shows the program and PID listening on or connected to the port.
lsof -i :Force-stops every process using the port. Fixes "address already in use".
kill -9 $(lsof -ti :)Force-kills without letting the program save. Check with lsof -i first.
Finds the process listening on the port and stops it.
Stop-Process -Id (Get-NetTCPConnection -LocalPort ).OwningProcess -ForceEvery program accepting connections, with numeric addresses and ports.
sudo lsof -iTCP -sTCP:LISTEN -n -PThe IP the internet sees you as.
curl -s https://ifconfig.mePrints the addresses a domain resolves to. Add a record type like MX or TXT after the domain.
dig +short Shows the DNS server used and the addresses for a domain.
nslookup Sends four pings and reports latency and packet loss. (On Windows, just ping host.)
ping -c 4 Lists every hop between you and the destination. On Windows use tracert.
traceroute Fetches only the response headers: status code, caching, redirects, server.
curl -I Saves the file with its original name, following redirects.
curl -LO Prints the total time for one request.
curl -o /dev/null -s -w "%{time_total}s\n" Shows the certificate’s valid-from and valid-until dates.
echo | openssl s_client -connect :443 -servername 2>/dev/null | openssl x509 -noout -datesServes the current folder at http://localhost:8000. Great for testing static sites.
python3 -m http.server Registrar, creation and expiry dates and name servers.
whois Every command copies as plain, clean text: no curly quotes, no long dashes, no invisible characters.