# Query notification service IP address (/en/api-reference/api-ref/rtmp-gateway/query-ip-address)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

Retrieves Agora message notification service IP addresses.

- OpenAPI: /openapi/media-gateway/media-gateway.en.yaml
- Operation ID: query-media-gateway-ncs-ip
- Method: GET
- Path: /v2/ncs/ip

## Servers

- https://api.agora.io

## Parameters

No parameters.

## Request body

No request body.

## Responses

### 200

The request succeeded and returned notification service IP addresses.

- `data` (object)
  - `data.service` (object)
    - `data.service.hosts` (array)
      - `data.service.hosts.items` (object)
        - `data.service.hosts.items.primaryIP` (string) - IP address of the Agora message notification service server. Add this IP address, or returned IP address list, to your firewall whitelist.
No schema.
### default

The request failed. A `401 (Unauthorized)` response status code means the request is not authorized.

- `status` (string) - Request status.
No schema.
- `message` (string) - Description of why the request failed.
No schema.
