We would like to force all our local node traffic to use the local network instead of the internet to communicate between eachother. Any best practice to do this?

1 Answer 1


To allow a node to connect to other nodes in the local network you will want to use the following flags:

--allow-private-ipv4: Always accept connecting to private IPv4 addresses.
--discover-local: Enable peer discovery on local networks.

As is explained in polkadot --help, those options are Enabled by default for chains marked as "local" in their chain specifications, or when --dev is passed".

Moreover if you want to restrict connection only to certain peers, you should look into the --reserved-nodes and --reserved-only flags.

  • Would this still allow external connections over the internet though? I would like the nodes we are running only communicate local but still want other nodes to connect across the internet.
    – Zoltan75
    Nov 1, 2022 at 14:53
  • 1
    As far as I know this doesn't prevent internet traffic as long as your node is reachable on a public IP. Nov 3, 2022 at 11:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.