{"id":348,"date":"2013-11-19T23:45:33","date_gmt":"2013-11-19T15:45:33","guid":{"rendered":"https:\/\/www.techcoil.com\/blog\/?p=348"},"modified":"2018-09-04T13:15:59","modified_gmt":"2018-09-04T05:15:59","slug":"steps-to-check-which-process-is-listening-on-a-port-with-windows-built-in-facilities","status":"publish","type":"post","link":"https:\/\/www.techcoil.com\/blog\/steps-to-check-which-process-is-listening-on-a-port-with-windows-built-in-facilities\/","title":{"rendered":"Steps to check whether a process had utilised a port before your application does with windows built in facilities"},"content":{"rendered":"<p>As a systems analyst, it is inevitable for me to go to windows based computers to check out the applications that I am taking care of. Most of my applications listen to commands via TCP\/IP ports in order to do work. <\/p>\n<p>Whenever a user reports that one of such applications is failing on their machine, the first thing that I will check out is whether that application is able to reserve the port that it is supposed to listen to.<\/p>\n<p>Although there are Sysinternal suite of diagnostic tools for me to use, there are client machines does not allow foreign executables to execute on them. <\/p>\n<p>This post details the steps that I take to check out whether there is a port binding issue in the event that my application fail to run in windows based machines. <\/p>\n<ol>\n<li>Start command prompt. Inside command prompt, type 'netstat \u2013aon'<\/li>\n<li>Look for the number which my application listen to, after :, and look at the last column for the pid. <\/li>\n<li>Open up task manager. <\/li>\n<li>In task manager, go to the processes tab. Look at the PID column. If the column is not available, go to view -> Select Column... and check on the PID option.<\/li>\n<li>Match the pid to the one that u get from step 2) and look at the process name. <\/li>\n<\/ol>\n<p>If the process name shown is not my application executable, it will mean that my application had failed to grab hold of the port for it to do work, and I can take steps to bring it up again. <\/p>\n<p>If the process name shown is indeed my application executable, I can continue with the performing other debug procedures for that application.<\/p>\n\n      <ul id=\"social-sharing-buttons-list\">\n        <li class=\"facebook\">\n          <a href=\"https:\/\/www.facebook.com\/sharer\/sharer.php?u=https%3A%2F%2Fwp.me%2Fp245TQ-5C\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n            <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Facebook.png\" alt=\"Facebook icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"twitter\">\n          <a href=\"https:\/\/twitter.com\/intent\/tweet?text=&url=https%3A%2F%2Fwp.me%2Fp245TQ-5C&via=Techcoil_com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Twitter.png\" alt=\"Twitter icon\"> Tweet\n          <\/a>\n        <\/li>\n        <li class=\"linkedin\">\n          <a href=\"https:\/\/www.linkedin.com\/shareArticle?mini=1&title=&url=https%3A%2F%2Fwp.me%2Fp245TQ-5C&source=https:\/\/www.techcoil.com\" target=\"_blank\" role=\"button\" rel=\"nofollow\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/linkedin.png\" alt=\"Linkedin icon\"> Share\n          <\/a>\n        <\/li>\n        <li class=\"pinterest\">\n          <a href=\"https:\/\/pinterest.com\/pin\/create\/button\/?url=https%3A%2F%2Fwww.techcoil.com%2Fblog%2Fwp-json%2Fwp%2Fv2%2Fposts%2F348&description=\" class=\"pin-it-button\" target=\"_blank\" role=\"button\" rel=\"nofollow\" count-layout=\"horizontal\">\n          <img decoding=\"async\" src=\"\/ph\/img\/3rd-party\/social-icons\/Pinterest.png\" alt=\"Pinterest icon\"> Save\n          <\/a>\n        <\/li>\n      <\/ul>\n    ","protected":false},"excerpt":{"rendered":"<p>As a systems analyst, it is inevitable for me to go to windows based computers to check out the applications that I am taking care of. Most of my applications listen to commands via TCP\/IP ports in order to do work. <\/p>\n<p>Whenever a user reports that one of such applications is failing on their machine, the first thing that I will check out is whether that application is able to reserve the port that it is supposed to listen to.<\/p>\n<p>Although there are Sysinternal suite of diagnostic tools for me to use, there are client machines does not allow foreign executables to execute on them. <\/p>\n<p>This post details the steps that I take to check out whether there is a port binding issue in the event that my application fail to run in windows based machines. <\/p>\n","protected":false},"author":1,"featured_media":1188,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":""},"categories":[4],"tags":[182,183,181],"jetpack_featured_media_url":"https:\/\/www.techcoil.com\/blog\/wp-content\/uploads\/Windows-Logo-in-2011.gif","jetpack_shortlink":"https:\/\/wp.me\/p245TQ-5C","jetpack-related-posts":[],"jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/348"}],"collection":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/comments?post=348"}],"version-history":[{"count":0,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/posts\/348\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media\/1188"}],"wp:attachment":[{"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/media?parent=348"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/categories?post=348"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.techcoil.com\/blog\/wp-json\/wp\/v2\/tags?post=348"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}