So I was on my macbook air and I had just installed macOS monterey. I was a bit suspicious of some of the things running on the computer, so I decided to see all of the open ports. I found the command sudo lsof -PiTCP -sTCP:LISTEN to look for the listening ports. However, I got some strange output even though the only application open was the terminal:
launchd TCP localhost:8021 (LISTEN)
rapportd TCP *:49159 (LISTEN)
I did not understand what these two lines were, and why ports 8021 and 49159 were listening despite the firewall being on and strict. Is there a way to block these connections? If anyone could answer this, it would be much appreciated.
rapportdappears to have something to do with handing off phone calls between Apple devices; see "What is rapportd and why does it want incoming network connections?" – Gordon Davisson Jan 15 '22 at 23:44sudo launchctl list com.apple.ftp-proxy, and see if it gives you an error ("Could not find service...", in which case it's disabled) or lists its properties (in which case it's enabled). – Gordon Davisson Jan 16 '22 at 01:36