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

Add --bind-address and --rpc-bind-address validator arguments #8628

Merged
merged 1 commit into from
Mar 5, 2020

Conversation

mvines
Copy link
Member

@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

@mvines mvines merged commit 448b957 into solana-labs:master Mar 5, 2020
@mvines mvines deleted the addr branch March 5, 2020 05:46
mergify bot pushed a commit that referenced this pull request Mar 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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