This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
OK, I'm a little confused. In the assignment you will have one port listening for RMI calls. When you shut down the server, it sill no longer listen on the port. That is all you really need to do. I don't understand why you want to "Close" all the ports or some of them. It is really whats behind the port that is listening. Mark