> ## Documentation Index
> Fetch the complete documentation index at: https://rexrex.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Network

> Inspect node identity, connectivity, and established devp2p peers.

The network commands inspect the execution client's devp2p surface through the standard `net` namespace and the read-only methods in Reth's `admin` namespace.

Use these commands to answer questions such as:

* is the node listening, and how many peer sessions are established?
* what devp2p identity and ports does this node advertise?
* which clients, directions, and protocol capabilities are represented by its peers?

<CardGroup cols={3}>
  <Card title="Status" icon="activity" href="/docs/network/status">
    Show listening state, peer count, and network ID.
  </Card>

  <Card title="Node" icon="server" href="/docs/network/node">
    Show this node's identity, addresses, ports, and protocols.
  </Card>

  <Card title="Peers" icon="users" href="/docs/network/peers">
    Inspect established peer sessions and capabilities.
  </Card>
</CardGroup>

## Prerequisites

Enable `net` for `network status` and `admin` for `network node` and `network peers`:

```sh theme={null}
reth node \
  --dev \
  --http \
  --http.addr 127.0.0.1 \
  --http.api eth,net,admin \
  --datadir ./alice
```

Rex connects to `http://127.0.0.1:8545` (`localhost:8545`) by default:

```sh theme={null}
rex network status
```

Use the global `--rpc <URL>` flag to target a different endpoint.

<Warning>
  The `admin` namespace also contains methods that can change the node's peer set. Keep an HTTP endpoint with `admin` enabled bound to localhost or another trusted interface. Rex's network commands only call the read-only `admin_nodeInfo` and `admin_peers` methods.
</Warning>

## Namespace Boundary

`network status` uses portable `net` methods. `network node` and `network peers` use the non-standard `admin` methods supported by Reth and other execution clients.

If an admin-backed command returns `method not found`, add `admin` to `--http.api` and restart the node.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.