title: Metamask not connecting to localhost 8545
body: <p>I was trying to follow a tutorial from <a href="https://dev.to/dabit3/the-complete-guide-to-full-stack-ethereum-development-3j13" rel="noreferrer">devto.io</a> and to send transactions to the smart contract, I would need to connect my MetaMask wallet using one of the accounts created when I ran <code>npx hardhat node</code> command.
  To do so, I opened MetaMask and updated the network to be Localhost 8545, but Metamask didn't connect to it and showed errors like the following screenshot.
  <a href="https://i.stack.imgur.com/ehAeE.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ehAeE.png" alt="enter image description here" /></a></p>