Find the process that is listening on a local IPv6 TCP port and don't convert network or port numbers

lsof

  • Lists open files and the corresponding processes.
    Note: Root privileges (or sudo) is required to list files opened by others.
    More information: <https://manned.org/lsof>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

lsof -i6TCP:{{port}} -sTCP:LISTEN -n -P

click the source code to copy install lsof on any operating system with command-not-found.com