Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
    Bookmark Topic Watch Topic
  • New Topic

NX: Basic shutting down ports

 
Bill Robertson
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
Bill Robertson
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 17309
11
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!