# Configure IPv4 and IPv6

### Understanding IPv4 and IPv6

IPv4 is the traditional Internet Protocol version characterized by a limited address space. Many networks still heavily rely on IPv4.

IPv6 presents a significantly expanded address space, designed to accommodate the ever-growing number of devices connected to the internet.

By default, IPv6 is enabled for the relay service and can be disabled if necessary. Some ISPs do not provide IPv6 for their internet services, and in such cases, disabling IPv6 is not mandatory as it does not cause any issues. Disabling IPv6 suppresses log messages like:

```
[notice] Unable to find IPv6 address for ORPort 9001. You might want to specify IPv4Only to it or set an explicit address or set Address.
```

### Configuring IPv4 & IPv6 for Your Relay

**IPv4 Configuration with IPv6 Enabled:** Edit the anonrc file and specify the IPv4 address for the ORPort.

```bash
ORPort <YourChosenPort>
```

**IPv4 Configuration with IPv6 Disabled (Optional):** Disable IPv6 on your network and update the anonrc file accordingly.

```bash
ORPort <YourChosenPort> IPv4Only
AddressDisableIPv6
```

Save the changes and restart the service.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.anyone.io/relay/network/configure-ipv4-and-ipv6.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
