File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: Basic shutting down ports Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Reply locked New topic
Author

NX: Basic shutting down ports

Bill Robertson
Ranch Hand

Joined: Mar 21, 2003
Posts: 234
How do I list the ports that are in use on my machine and close them
all in one command. I know Ctrl-C to stop the server but how do I close
all of the listening ports.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

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


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Bill Robertson
Ranch Hand

Joined: Mar 21, 2003
Posts: 234
Right, right. I guess you could say it was not really a certification
question exactly. I was just doing some testing and was very curious.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17250
    
    6

I thought maybe that was so. I need to close this thread. I hope it answered your question. If not there is a Networking forum that this question would be better asked in.
Good Luck
Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NX: Basic shutting down ports