This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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