title: Couldn't connect to node http://localhost:8545
body: <p><strong>Screenshot of the issues:</strong><br>
  <img src="https://i.stack.imgur.com/xcGh7.jpg" alt="">
     Web3.min.js path in my system directory!</p>
  
  <p><img src="https://i.stack.imgur.com/DsrH2.jpg" alt="">
     Web3.min.js is loaded from folder in my browser</p>
  
  <p><img src="https://i.stack.imgur.com/IneGU.jpg" alt="">
     Copy of the web3.min.js in the same folder where index.html file is present.</p>
  
  <p><img src="https://i.stack.imgur.com/EJ3ek.jpg" alt="">
     Code added <em></em></p>
  
  <p><img src="https://i.stack.imgur.com/WzkXc.jpg" alt=""></p>
  
  <p>info of the node!
  <img src="https://i.stack.imgur.com/Z73tM.png" alt="">
      <strong>I am facing following two issues:</strong></p>
  
  <ol>
  <li><p>Failed to load resource: web3.min.js:1 net::ERR_CONNECTION_REFUSED</p></li>
  <li><p>ERROR: Couldn't connect to node <a href="http://localhost:8545" rel="nofollow noreferrer">http://localhost:8545</a>.</p>
  
  <p><strong>My Index.html file is</strong></p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
      &lt;meta charset="UTF-8"&gt;
      &lt;meta name="viewport" content="width=device-width, initial-scale=1.0"&gt;
      &lt;meta http-equiv="X-UA-Compatible" content="ie=edge"&gt;
      &lt;title&gt;Document&lt;/title&gt;
  
      &lt;link rel="stylesheet" type="text/css" href="main.css"&gt;
  </code></pre>
  
  
  
  <pre><code>&lt;/head&gt;
  &lt;body&gt;
      &lt;div class="container"&gt;
  
          &lt;h1&gt;Coursetro Instructor&lt;/h1&gt;
  
          &lt;h2 id="instructor"&gt;&lt;/h2&gt;
  
          &lt;label for="name" class="col-lg-2 control-label"&gt;Instructor Name&lt;/label&gt;
          &lt;input id="name" type="text"&gt;
  
          &lt;label for="name" class="col-lg-2 control-label"&gt;Instructor Age&lt;/label&gt;
          &lt;input id="age" type="text"&gt;
  
          &lt;button id="button"&gt;Update Instructor&lt;/button&gt;
  
  
      &lt;/div&gt;
  
      &lt;script src="https://code.jquery.com/jquery-3.2.1.slim.min.js"&gt;&lt;/script&gt;
  
      &lt;script&gt;
        if (typeof web3 !== 'undefined') {
              web3 = new Web3(web3.currentProvider);
          } else {
              // set the provider you want from Web3.providers
              web3 = new Web3(new Web3.providers.HttpProvider("http://localhost:8545"));
          }
          web3.eth.defaultAccount = web3.eth.accounts[0];
          var CoursetroContract = web3.eth.contract([
      {
          "constant": false,
          "inputs": [
              {
                  "name": "_fName",
                  "type": "string"
              },
              {
                  "name": "_age",
                  "type": "uint256"
              }
          ],
          "name": "setInstructor",
          "outputs": [],
          "payable": false,
          "stateMutability": "nonpayable",
          "type": "function"
      },
      {
          "constant": true,
          "inputs": [],
          "name": "getInstructor",
          "outputs": [
              {
                  "name": "",
                  "type": "string"
              },
              {
                  "name": "",
                  "type": "uint256"
              }
          ],
          "payable": false,
          "stateMutability": "view",
          "type": "function"
      }
  ]);       
  var Coursetro=CoursetroContract.at('0x95712aa4ff464e56f76af55da6239a368c459ed4');
      console.log(Coursetro);
  
      &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre></li>
  </ol>