BeginnerGuide

How to Troubleshoot a dApp That Says "Wrong Network"

Learn why a dApp says "wrong network," how chain IDs work, and how to fix the error safely in MetaMask and other wallets.

By Niki

Immediate guidance: Usually a connection issue

"Wrong network" almost always means your wallet is pointed at a different chain ID than the one the dApp's smart contracts live on. It is a safety warning, not a lost-funds event.

Never share a recovery phrase, private key, password, or two-factor code with anyone offering support.

How to Troubleshoot a dApp That Says "Wrong Network"

Key Takeaways

  1. "Wrong network" almost always means your wallet is pointed at a different chain ID than the one the dApp's smart contracts live on. It is a safety warning, not a lost-funds event.
  2. The fix is usually one of four things: switch networks in your wallet, add the missing network, refresh or reconnect the session, or replace a dead RPC endpoint.
  3. Never add a network by clicking blind on an unknown popup. Verify the chain ID and RPC address against the project's official documentation first.

What the "Wrong Network" Message Actually Means

Every EVM compatible blockchain carries an identifying number called a chain ID. Ethereum mainnet is 1. Base is 8453. Arbitrum One is 42161. These numbers are how software tells one chain from another, because many chains share the same address format and would otherwise look identical.

A decentralized application, or dApp, is deployed to one specific chain. Its smart contracts exist at particular addresses on that chain and nowhere else. When you connect a wallet, the dApp asks your wallet a simple question: which chain are you on right now? If the answer does not match the chain the dApp expects, the interface blocks you and displays a warning.

That warning is protective. Without it, you could sign a transaction aimed at an address that holds no contract on your current chain, or send tokens to an address controlled by somebody else on a different network.

How a Wallet and a dApp Agree on a Network

Understanding the handshake makes the error much easier to diagnose.

The dApp calls a method named eth_chainId to read your wallet's active chain. If it sees the wrong value, it can politely ask the wallet to change using wallet_switchEthereumChain, a standard defined in EIP-3326. According to MetaMask's developer documentation, that method returns null on success and can return error code 4902 when the requested chain has not been added to the wallet at all. In that case the dApp may follow up with wallet_addEthereumChain, defined in EIP-3085, which prompts you to add the network yourself.

Sessions created through WalletConnect work slightly differently. They negotiate a list of allowed chains up front using CAIP-2 identifiers such as eip155:1 for Ethereum. If the chain you need was never included in that original session, the wallet reports an unsupported chain error and the session has to be rebuilt rather than switched.

Chain ID Quick Reference

Use this table to confirm you are on the network you think you are on. Always cross check against the project's own documentation before adding anything manually.

NetworkTypeChain IDNative gas token
EthereumLayer 11ETH
OP MainnetLayer 2 rollup10ETH
BNB Smart ChainLayer 156BNB
Polygon PoSSidechain137POL
BaseLayer 2 rollup8453ETH
Arbitrum OneLayer 2 rollup42161ETH
Avalanche C-ChainLayer 143114AVAX
LineaLayer 2 rollup59144ETH
zkSync EraLayer 2 rollup324ETH
ScrollLayer 2 rollup534352ETH
SepoliaEthereum testnet11155111Test ETH

Chain IDs are stable, but token symbols do change. Polygon's gas token migrated from MATIC to POL.

The Fast Fix: Six Steps in Order

Work through these in sequence. Most cases resolve at step two or three.

  1. Read the dApp's requirement. The banner usually names the chain it wants. If it does not, check the project's documentation or footer. Guessing wastes time.
  2. Open your wallet's network selector and switch. In MetaMask this is the network dropdown at the top of the extension. Pick the required chain and return to the dApp.
  3. Refresh the page. Some dApps only read the chain ID when the page loads. A hard refresh forces a fresh read.
  4. Disconnect and reconnect the wallet. Use the dApp's own disconnect button, then connect again. This rebuilds the session with current values.
  5. Revoke the site connection in your wallet, then reconnect. In MetaMask, open the connected sites list, remove the dApp, and start a clean connection. Since MetaMask introduced per-site chain permissions, a site can remember an older network choice that no longer matches what you want.
  6. Add the network manually if it is missing entirely. Only do this using values from an official source.

Error Codes You May See

Developer consoles and some wallet popups expose numeric codes. This table explains the common ones.

CodeMeaningWhat to do
4001You rejected the requestRetry and approve the network switch prompt
4100Method not supported by the walletSwitch networks manually inside the wallet
4200Wallet is not connectedReconnect the wallet to the site
4902Unrecognized chain ID, network not addedAdd the network, then switch
Unsupported chainWalletConnect session excludes that chainDisconnect and start a new session

Cause and Fix Table

SymptomLikely causeFix
Wallet shows the right network but dApp still complainsStale page stateHard refresh, then reconnect
Switch button does nothingWallet does not support programmatic switchingChange networks by hand in the wallet
Popup never appearsAnother wallet extension intercepted the requestDisable extra extensions, or pick your wallet from the connect list
Error appears only on mobileIn-app browser session locked to one chainReconnect inside the wallet's own browser
Balances show as zero and network looks wrongDead or rate limited RPC endpointReplace the RPC URL for that network
dApp works for others, not youCustom network saved with a wrong chain IDDelete the custom network and re-add it

Special Cases Worth Knowing

Multiple wallet extensions installed. If you run two or three browser wallets, they may compete to answer the dApp. The EIP-6963 standard was created so sites can list every installed wallet and let you choose. Older dApps that do not support it may connect to whichever extension loaded first, which can be a wallet sitting on a different network than the one you were looking at.

Hardware wallets. A Ledger or Trezor signs whatever the software wallet gives it. The network is controlled by MetaMask or the companion app, not the device. Check the software layer.

Testnet confusion. Following a tutorial written for Sepolia while the live dApp runs on mainnet produces this error immediately. Confirm which environment the interface expects.

Broken RPC endpoints. An RPC endpoint is the server your wallet talks to for a given chain. Free public endpoints go down or throttle heavy users, and when that happens your wallet may fail to confirm the chain at all. Replacing the endpoint often fixes what looks like a network mismatch.

Safety Rules Before You Add Any Network

Adding a network is the one step in this guide that carries real risk, because a malicious RPC endpoint can feed your wallet false information about balances and transaction results.

  • Get chain ID and RPC values from the project's official documentation, not from a search result or a message in a chat group.
  • Be suspicious of any site that pushes a network popup before you clicked anything.
  • A correct chain ID does not prove an RPC endpoint is safe. Both need to be right.
  • If the network name and the chain ID disagree with the official source, cancel.

When It Is the dApp's Fault

Sometimes you are on the correct chain and the interface is simply wrong. Symptoms include the banner appearing on the chain the dApp itself recommends, or the error persisting across two different wallets and two browsers. In that case the front end may be misconfigured or its own RPC provider may be failing. Check the project's status page or community channels before changing anything else in your wallet.


FAQ

Does a "wrong network" error mean my funds are at risk? No. It means the dApp refused to proceed. Your assets remain where they are, on whichever chain they were already sitting on.

Why does my wallet keep switching back to the wrong network? Modern wallets remember a network per site. If a dApp previously ran on another chain, that preference can persist. Clearing the site's connection and reconnecting resets it.

Can I move tokens between networks to fix this? Switching networks does not move assets. Moving assets between chains requires a bridge, which is a separate process with its own risks and fees.

Why does the network switch prompt never appear? Either the wallet does not support the switch method, another extension intercepted the request, or the connection was made through a session that cannot change chains. Switch manually inside the wallet.

Is a custom RPC endpoint safe to use? Only if it comes from a source you trust. An RPC provider can see your requests and can return inaccurate data, so treat it as part of your security surface.


  • Chain ID: The numeric identifier that distinguishes one EVM network from another.
  • RPC endpoint: The server address a wallet uses to read from and broadcast to a blockchain.
  • EVM: The Ethereum Virtual Machine, the execution environment shared by Ethereum and many compatible chains.
  • Layer 2: A network that settles its activity back to a base chain such as Ethereum.
  • Session: The connection agreement between a dApp and a wallet, including which chains and accounts are permitted.

Sources

  • MetaMask developer documentation, wallet_switchEthereumChain and add network guides, docs.metamask.io
  • MetaMask Help Center, "How to change networks in MetaMask Extension and Mobile," support.metamask.io
  • MetaMask, "Chain Permissions" feature update, metamask.io/news
  • EIP-3326 and EIP-3085, Ethereum Improvement Proposals
  • Etherscan chain list API and public chain ID references for network identifiers

Further Reading

  1. MetaMask Help Center: adding, editing, and verifying custom networks
  2. Ethereum.org: introduction to layer 2 networks and how rollups relate to mainnet
  3. EIP-6963: multi-wallet discovery and why it reduces extension conflicts

Disclaimer: This article is educational and does not constitute financial, legal, or security advice. Wallet menus and settings change between versions, so confirm exact steps in your wallet's official help documentation.

Not sure which problem you have?

Use the Fixing Crypto Mistakes hub to identify the transaction, wallet, network, or exchange issue before taking another action.

OPEN TROUBLESHOOTING HUB

Share Transmission

Broadcast this signal to your network