Skip to content

Commit d725c09

Browse files
authored
Merge pull request #5716 from AwaisBinKaleem/main
Docs update config to allow access to rpc from external ip on specific port using hostname flag
2 parents 458cc50 + ff74f1d commit d725c09

File tree

1 file changed

+4
-0
lines changed
  • docs/src/content/hardhat-runner/docs/getting-started

1 file changed

+4
-0
lines changed

docs/src/content/hardhat-runner/docs/getting-started/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,10 @@ npx hardhat ignition deploy ./ignition/modules/Lock.js --network localhost
364364

365365
::::
366366

367+
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`.
368+
369+
If you want to allow incoming requests from anywhere, including external ips, use `--hostname 0.0.0.0`.
370+
367371
Congrats! You have created a project and compiled, tested and deployed a smart contract.
368372

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

0 commit comments

Comments
 (0)