I am using a software development IDE (Intellij) that is using local machine port 5005 for Java program debugging. In some occasions it reports that it cannot connect because the port is being used or sometimes reports connection timeout. So I restart IDE, kill all java and javaw processes, and then I run:
netstat -a -n | find /c "5005"
It reports 0. To be sure, I also run
find and investigate the list - no 5005 with
listening nor with
wait state. But still after next launch IDE keeps reporting the same connection errors.
The only way that helps to recover is to reboot the system. After that it works just fine for many hours or even days until it gets stuck again with the same symptoms.
I'm confused about this. I imagined that
netstat displays all the ports being used, but obviously it misses something. Only full reboot kills that "unknown invisible process" that has blocked the port.
What is going on here? How can a port on Windows be blocked in such a manner that even
netstat doesn't report it?