[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f1qdsx2hqnes0w":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},"stop-process-on-port","macos","Stop the process occupying a port on Mac","Kill whatever is listening on a port (e.g. a stuck dev server).","medium","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 -ti :8080 | xargs kill",null,"Run the command below, replacing 8080 with your port. Any process listening on it is terminated. Run the lookup command first if you are not sure what is using the port.","lsof -ti :8080 prints just the PIDs of processes using port 8080, and xargs kill sends each a SIGTERM — the polite termination signal that lets the process clean up. Prefer identifying the process (see Related) before killing it blindly.","This force-terminates processes without saving their state. Unsaved work in the target app is lost.","Kill the Process on a Port — macOS Terminal","Stop a stuck dev server or any process occupying a port on macOS with one Terminal command.","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 -t prints PIDs only, suitable for piping to kill.",[39,48,62],{"slug":40,"platform":7,"title":41,"description":42,"risk":43,"categorySlug":11,"tags":44,"verifiedAt":21,"updatedAt":21},"find-process-using-port","Find which process is using a port on Mac","Identify the app holding port 8080 (or any other port).","low",[45,46,47],{"slug":14,"name":14},{"slug":16,"name":17},{"slug":19,"name":20},{"slug":49,"platform":7,"title":50,"description":51,"risk":10,"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":10,"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"]