{"id":399,"date":"2015-01-09T21:20:35","date_gmt":"2015-01-09T15:50:35","guid":{"rendered":"http:\/\/www.cyberaka.com\/?p=399"},"modified":"2015-01-09T21:20:35","modified_gmt":"2015-01-09T15:50:35","slug":"detecting-java-processes-listening-on-local-ports","status":"publish","type":"post","link":"https:\/\/www.cyberaka.com\/?p=399","title":{"rendered":"Detecting Java Processes listening on local ports"},"content":{"rendered":"<p>We can use the jps command that is part of JDK to find out which Java processes are running in the current user&#8217;s session. We can further find out which network ports have been opened by a particular java process.<\/p>\n<p>Use the follwing command to list all java processes:<br \/>\n<code>jps -l<\/code><\/p>\n<p>If you want more details about a process you can execute the following command:<br \/>\n<code>jps -v | findstr &lt;process id&gt;<\/code><\/p>\n<p>The following variant of netstat command lists all the listening as well as established socket connection in a system:<br \/>\n<code>netstat -ano<\/code><\/p>\n<p>This command can be further used to find out what sockets are opened by a specific process<br \/>\n<code>netstat -ano | findstr &lt;process id&gt;<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We can use the jps command that is part of JDK to find out which Java processes are running in the current user&#8217;s session. We can further find out which network ports have been opened by a particular java process. Use the follwing command to list all java processes: jps -l If you want more [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21,23,24,25],"tags":[],"class_list":["post-399","post","type-post","status-publish","format-standard","hentry","category-java","category-programming","category-tips-and-tricks","category-windows-os"],"_links":{"self":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/399","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=399"}],"version-history":[{"count":3,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/399\/revisions"}],"predecessor-version":[{"id":402,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=\/wp\/v2\/posts\/399\/revisions\/402"}],"wp:attachment":[{"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=399"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=399"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cyberaka.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}