[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$feyzlpgbgotf8":3},{"type":4,"solution":5},"solution",{"slug":6,"platform":7,"title":8,"description":9,"risk":10,"categorySlug":11,"tags":12,"verifiedAt":21,"updatedAt":21,"categoryName":22,"command":23,"undoCommand":24,"directAnswer":25,"explanation":26,"warning":27,"seoTitle":28,"seoDescription":29,"requirements":24,"macosSupport":30,"sources":31,"related":38},"find-process-using-port","macos","Find which process is using a port on Mac","Identify the app holding port 8080 (or any other port).","low","developer",[13,15,18],{"slug":14,"name":14},"lsof",{"slug":16,"name":17},"processes","Processes",{"slug":19,"name":20},"diagnostics","Diagnostics","2025-11-16T00:00:00.000Z","Developer","lsof -nP -iTCP:8080 -sTCP:LISTEN",null,"Run the command below, replacing 8080 with your port. It prints the process name, PID and user. Stop it with kill \u003CPID> once identified.","'Address already in use' errors usually mean another process is listening on the port. lsof lists open files — including network sockets — and -iTCP:8080 -sTCP:LISTEN narrows it to listeners on that port. -n skips DNS lookups and -P shows raw port numbers, making it fast and readable.","Only kill processes you recognize; system services also listen on ports.","Find What's Using Port 8080 on Mac — lsof Command","Identify which process is listening on any port in macOS with lsof, and how to stop it safely.","macOS 10.11 El Capitan – 15 Sequoia",[32],{"url":33,"title":34,"publisher":35,"sourceType":36,"evidence":37,"retrievedAt":21},"https:\u002F\u002Fss64.com\u002Fmac\u002Flsof.html","lsof — list open files","SS64","technical","lsof -iTCP:PORT -sTCP:LISTEN lists processes listening on a TCP port.",[39,48,62],{"slug":40,"platform":7,"title":41,"description":42,"risk":43,"categorySlug":11,"tags":44,"verifiedAt":21,"updatedAt":21},"stop-process-on-port","Stop the process occupying a port on Mac","Kill whatever is listening on a port (e.g. a stuck dev server).","medium",[45,46,47],{"slug":14,"name":14},{"slug":16,"name":17},{"slug":19,"name":20},{"slug":49,"platform":7,"title":50,"description":51,"risk":43,"categorySlug":52,"tags":53,"verifiedAt":61,"updatedAt":61},"flush-dns-cache","Flush the DNS cache on Mac","Clear cached DNS lookups when a site resolves to a stale IP address.","network",[54,57,58],{"slug":55,"name":56},"dns","DNS",{"slug":19,"name":20},{"slug":59,"name":60},"terminal","Terminal","2025-11-18T00:00:00.000Z",{"slug":63,"platform":7,"title":64,"description":65,"risk":43,"categorySlug":66,"tags":67,"verifiedAt":75,"updatedAt":75},"show-wifi-password","Show a saved Wi-Fi password on Mac","Reveal the password of a network your Mac has joined before.","security",[68,71,74],{"slug":69,"name":70},"keychain","Keychain",{"slug":72,"name":73},"wifi","Wi-Fi",{"slug":19,"name":20},"2025-11-17T00:00:00.000Z"]