Using the following installation on AWS EC2 Server Ubuntu 20.04
npm install --save-dev [email protected]
using the following command:
npm hardhat node
getting the (following) response ( warning sign: 127.0.0.1:8545 which is not going to connect for a remote client to AWS localhost )
producing the following error from metamask trying to touch my network:
I have tried a number of variations in the hardhat.config.js including :
networks: {
localhost: {
url: "http://ec2-44-242-170-11.us-west-2.compute.amazonaws.com:8545"
}
hardhat: {
chainId: 31337
}
}
I have tried 1337, 2710 as chainID, examining Hardhat console to find the chainID as well as variations of the hardhat.config.js as well as different browsers ( no problems connecting with ganache on this instance ) as well as adding extra parameters in the "npm hardhat node" command. I can connect to my instance if I run react.js so there are no issues with security groups either I can also connect to truffle in very similar fashion (using dns in config and command line). Any insight would help!