Skip to content

VSC not connecting to Ganache or the offline network #282

Answered by mattjaf
rileymross asked this question in Q&A
Discussion options

You must be logged in to vote

Try going to settings, then server and changing it to Hostname: 192.xxx.x.xxx, Port numer: 8545, and chain id: 1337

Then using that info for your metamask.

If your metamask cant connect to it, your contract probably cant ether.

You don't really need to use ganache with hardhat. It has a built in backend.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rileymross
Comment options

Answer selected by rileymross
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants