Quote:
Another question that bogs my mind is that if someone came to know that these ports are open ,and security can be compromised or breached, how would one close those relevant ports.
If I were you then I would just install a firewall that should by default block all ports. Then I would open them up as needed, like if you had a web server you would open up port 80 on the firewall, or if you had realVNC server installed you would open up port 5900. Hopefully your firewall allows you to customize it like this. I used to use the free version of zonealarm and it didn't really let you customize it, it would just ask you if you wanted to let realVNC act as a server, then I would say yes, and that would open up port 5900.