Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Conversation

@mvines
Copy link
Contributor

@mvines mvines commented Mar 4, 2020

By default the validator will bind to all network interfaces on the system (0.0.0.0) but that's not always desired.

Example of how to bind only to the 1.1.1.1 interface (assuming that exists on your machine)

$ solana-validator --bind-address 1.1.1.1 ...

There's an additional option specifically for RPC, --rpc-bind-address. Here's an example of how to ensure that RPC is only accessible on 127.0.0.1 while binding all other ports to 0.0.0.0:

$ solana-validator --rpc-bind-address 127.0.0.1 --rpc-port 8899 --private-rpc

Fixes #8623

@codecov
Copy link

codecov bot commented Mar 4, 2020

Codecov Report

❗ No coverage uploaded for pull request base (master@fc409d9). Click here to learn what that means.
The diff coverage is 82.9%.

@@           Coverage Diff            @@
##             master   #8628   +/-   ##
========================================
  Coverage          ?     80%           
========================================
  Files             ?     259           
  Lines             ?   56111           
  Branches          ?       0           
========================================
  Hits              ?   44937           
  Misses            ?   11174           
  Partials          ?       0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

validator: Add command-line argument to indicate the IP address to bind to

1 participant