title: How to stop a server with kill-9 command
body: <p>Im unable to get my server to connect to my frontend and am trying to kill it with the command kill -9 PID but im unsure which PID to kill... Can killing the wrong one be detrimental ? <br></p>
  <p>when i run sudo lsof -i :5000 to see whats running i get back <br>
  COMMAND    PID    FD    DEVICE SIZE/OFF NODE NAME <br>
  ControlCe  402   22u  TCP *:commplex-main (LISTEN) <br>
  ControlCe  402   23u  TCP *:commplex-main (LISTEN) <br>
  ControlCe  402   28u  TCP localhost:commplex-main-&gt;localhost:51632 (ESTABLISHED) <br>
  Google    1575   21u  TCP localhost:51632-&gt;localhost:commplex-main (ESTABLISHED) <br></p>
  <p>Can someone explain what all of this means and how to know which to kill... <br></p>
  <p><strong>ERRORS</strong>: <br> Access to localhost was denied You don't have authorization to view this page.
  HTTP ERROR 403 when checking if my backend node server is running on localhost:5000/api/hello. <br><br>
  <strong>Aswell as</strong> <br>
  Error: listen EADDRINUSE: address already in use :::5000
  <br><br>
  Here is the backend package.json <br></p>
  <pre><code>{
    &quot;name&quot;: &quot;example-create-react-app-express&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;scripts&quot;: {
      &quot;client&quot;: &quot;cd client &amp;&amp; yarn start&quot;,
      &quot;server&quot;: &quot;nodemon server.js&quot;,
      &quot;dev&quot;: &quot;concurrently --kill-others-on-fail \&quot;yarn server\&quot; \&quot;yarn client\&quot;&quot;
    },
    &quot;dependencies&quot;: {
      &quot;axios&quot;: &quot;^0.24.0&quot;,
      &quot;body-parser&quot;: &quot;^1.18.3&quot;,
      &quot;cors&quot;: &quot;^2.8.5&quot;,
      &quot;dotenv&quot;: &quot;^10.0.0&quot;,
      &quot;express&quot;: &quot;^4.17.1&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;concurrently&quot;: &quot;^4.0.1&quot;
    }
  }
  </code></pre>
  <p>The client side package.json <br></p>
  <pre><code>{
    &quot;name&quot;: &quot;express-server-demo&quot;,
    &quot;version&quot;: &quot;0.1.0&quot;,
    &quot;private&quot;: true,
    &quot;proxy&quot;: &quot;http://localhost:5000/&quot;,
    &quot;dependencies&quot;: {
      &quot;@testing-library/jest-dom&quot;: &quot;^5.11.4&quot;,
      &quot;@testing-library/react&quot;: &quot;^11.1.0&quot;,
      &quot;@testing-library/user-event&quot;: &quot;^12.1.10&quot;,
      &quot;bootstrap&quot;: &quot;^5.1.3&quot;,
      &quot;bootstrap-icons&quot;: &quot;^1.7.1&quot;,
      &quot;firebase&quot;: &quot;^9.4.1&quot;,
      &quot;javascript-time-ago&quot;: &quot;^2.3.10&quot;,
      &quot;react&quot;: &quot;^17.0.2&quot;,
      &quot;react-bootstrap&quot;: &quot;^2.0.1&quot;,
      &quot;react-dom&quot;: &quot;^17.0.2&quot;,
      &quot;react-router-dom&quot;: &quot;^6.0.2&quot;,
      &quot;react-scripts&quot;: &quot;4.0.3&quot;,
      &quot;react-time-ago&quot;: &quot;^7.1.3&quot;,
      &quot;react-tooltip&quot;: &quot;^4.2.21&quot;,
      &quot;web-vitals&quot;: &quot;^1.0.1&quot;
    },
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;react-scripts start&quot;,
      &quot;build&quot;: &quot;react-scripts build&quot;,
      &quot;test&quot;: &quot;react-scripts test&quot;,
      &quot;eject&quot;: &quot;react-scripts eject&quot;
    },
    &quot;eslintConfig&quot;: {
      &quot;extends&quot;: [
        &quot;react-app&quot;,
        &quot;react-app/jest&quot;
      ]
    },
    &quot;browserslist&quot;: {
      &quot;production&quot;: [
        &quot;&gt;0.2%&quot;,
        &quot;not dead&quot;,
        &quot;not op_mini all&quot;
      ],
      &quot;development&quot;: [
        &quot;last 1 chrome version&quot;,
        &quot;last 1 firefox version&quot;,
        &quot;last 1 safari version&quot;
      ]
    }
  }
  </code></pre>
  <p>Im trying to run both the client and server with the command:<br>
  npm start from the client folder</p>