I am not sure how silly this to you guys but for me, its a really need to know question.
For a service to listen in a particular port in a server, that port should be available in open list of ports or that port will be open only when a service is started?
Let's say the service is configured to listen on port 6061,when we run netsat -a should that be available in open ports for the service be able to LISTEN to that port or the port will start to LISTEN only when the serive is started?
E.g.: Let's say that
telnet localhost 6061 is failing (or) telnet server.hostname.com 6061 is failing
does that mean that port is blocked/not allowed in the firewall or does it mean that the service configured for that particular port should be started for telnet to work?
Hope it makes sense?
Thanks for your time guys!