Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs update config to allow access to rpc from external ip on specific port using hostname flag #5716

Merged
merged 6 commits into from
Sep 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -356,6 +356,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)️