Do you mean a TCP/UDP port ? Which port exactly ? Not all of them are shutdown through services, a lot are opened just by programs that are running (ok now someone will get technical on me and say that services are really just programs). Anyway you can't really just shut a port down..
What happens is when an application wants a port it 'binds' that port and starts listening on it. What you can do is block the port from being accessed, you can use a firewall or a personal firewall like zonealarm (
Don't just arbitrarily shut down ports unless you know what they do, you might break something. Drop me the port number and I'll give you an idea of what it probably is and how you can shut it down.
On a side note you know whats really fun ? setting up your own little program to listen on that port and just collect whatever data is sent to it.. kind of like a primitive honeypot. Somedays I like to setup netcat to listen on port 80 (HTTP) and when someone connects just send them some data which looks like a webserver answering.. its fun to see what wierd requests you get. I log all the requests to a file and then when I'm done for the day I just look through them. You never know.. you might even capture a new worm like this.
Actually that is exactly what I wanted. Thank you.
By the way, I am currently a student in college majoring in Computer Science and studying System Administration and Networking. I am just being curious about network security and would like to learn whatever more you have to offer.