Port 5000 still in use

Just bought a macbook pro m4, im trying to run an api on port 5000, disabled airplay receiver, checked processes, ghost ones, hidden ones, and stuck ones. I didn't find a thing using the port, but i still get port in use.

Port 5000 seems to be used by Control Centre:

% lsof -n -P -i :5000
COMMAND   PID  USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
ControlCe 692 quinn   10u  IPv4 0x7f563c30c154f2b9      0t0  TCP *:5000 (LISTEN)
ControlCe 692 quinn   11u  IPv6 0x17fc8a42736525ff      0t0  TCP *:5000 (LISTEN)
% ps 692  
  PID   TT  STAT      TIME COMMAND
  692   ??  S    100:41.33 /System/Library/CoreServices/ControlCenter.app/Contents/MacOS/ControlCenter

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

when i run lsof -n -P -i :5000, i have no results. I can't find a single thing running on port 5000 yet i can't use it

It’s possible that it’s being used by code that relies on the user-space networking stack rather than BSD Sockets. You can view its state using skywalkctl. See this thread for an example, albeit one not directly related to this issue.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Port 5000 still in use
 
 
Q