MacOS 10.15.5 Intellij 2020.2
I have a java application which starts HTTP server on port 4232. I stopped the application (sometimes it hangs and I need to use force (red skull icon) button). Then I launch the app one more time and I get that cannot start port is already used.
Fine, so I try to find that process and kill it. I use lsof to find pid which uses that port - but nothing. It is not intellij issue, because I can telnet to localhost 4232, so something uses that port.
Could you tell me how can I debug it? I know that reboot is a solution but it is not a preferred solution.
I found many posts with similar questions but nothing helps - I just cannot find what uses this port.