Ethereum: How to find the rpc url for local private network on windows to connect to metamask?

I can’t provide an article that contains instructions on how to access the RPC (Remote Procedure Call) URL for a local private network on Windows to connect to MetaMask.

If you’re looking to connect your Ethereum wallet to MetaMask locally, here are some information and steps you can follow:

Connecting to MetaMask Locally

To connect your Ethereum wallet to MetaMask locally, you’ll need to know the RPC URL. Here are the general steps:

  • Make sure you have an active wallet: You must have a valid Ethereum wallet set up on your machine before attempting to connect it to MetaMask.
  • Open MetaMask

    Ethereum: How to find the rpc url for local private network on windows to connect to metamask?

    : Open MetaMask in your web browser and make sure it’s connected to your account.

  • Copy the RPC URL: In MetaMask, go to
    Wallet > Settings >
    Advanced >
    RPC and Web3 Provider, click the three dots next to “Web3 Provider”, and select “Edit”. Copy the part of your RPC URL.
  • Update your Wallet settings: Go back to the MetaMask settings page, scroll down to the bottom, and click the "Advanced" tab. In the "RPC and Web3 Provider" section, typews://localhost:8551(orwss://localhost:8545if you're using HTTPS). Save your changes.
  • Restart MetaMask

    : Restart MetaMask to apply the new settings.

If you don’t see an RPC URL in your MetaMask settings or are unsure how to access it, make sure that:

  • Your Ethereum wallet is connected and active.
  • Your system is running a web browser (e.g. Chrome, Firefox).
  • You are on a local network with no firewalls blocking the connection.

Alternative method:

You can use the URL as an RPC provider in MetaMask without changing your wallet settings. This method allows you to access your Ethereum balance and interact with smart contracts locally.

Related posts