Skip to content

Commit

Permalink
Merge pull request #5716 from AwaisBinKaleem/main
Browse files Browse the repository at this point in the history
Docs update config to allow access to rpc from external ip on specific port using hostname flag
  • Loading branch information
alcuadrado authored Sep 14, 2024
2 parents 458cc50 + ff74f1d commit d725c09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/src/content/hardhat-runner/docs/getting-started/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,10 @@ npx hardhat ignition deploy ./ignition/modules/Lock.js --network localhost

::::

To run Hardhat Network on specific port and allow incoming requests from a specific network interface or hostname, run `npx hardhat node --hostname 127.0.0.1 --port 8545`.

If you want to allow incoming requests from anywhere, including external ips, use `--hostname 0.0.0.0`.

Congrats! You have created a project and compiled, tested and deployed a smart contract.

Show us some love by starring [our repository on GitHub!](https://github.com/NomicFoundation/hardhat)

0 comments on commit d725c09

Please sign in to comment.