---
title: "Create database remote connection"
method: POST
path: "/api/hosting/v1/accounts/{username}/databases/{name}/remote-connections"
tags: ["Hosting: Databases"]
---

# Create database remote connection

`POST /api/hosting/v1/accounts/{username}/databases/{name}/remote-connections`

Allows a remote host to connect to the specified database.

Provide an IPv4/IPv6 address, or "%" to allow any host. The database name must be
the full name returned by the list databases endpoint.

## Path parameters

- `username` string, required
- `name` string, required

## Request body

- HostingV1DatabasesRemoteConnectionsCreateRemoteConnectionRequest
  - `ip` string, required — Remote host to allow: an IPv4/IPv6 address, or "%" for any host.

## Response `200`

Success empty response

- CommonSuccessEmptyResource
  - `message` string

## Other responses

- `401` — Unauthenticated response
- `422` — Validation error response
- `500` — Error response

## Changes

- **2026-07-27** `6622a88a5a1b` — 1 info
  - api operation id `hosting_createAccountDatabaseRemoteConnectionV1` removed and replaced with `hosting_createDatabaseRemoteConnectionV1`
- **2026-06-30** `f02cb56cf688` — 1 info
  - endpoint added
- **2026-06-09** `d05574986eb1` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/hostinger/apis/hostinger-api/changes/api/hosting/v1/accounts/:username/databases/:name/remote-connections/post.md)

---

[API](https://skmtc.dev/hostinger/apis/hostinger-api.md) · [All operations](https://skmtc.dev/hostinger/apis/hostinger-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hostinger/hostinger-api/revisions/53ccee45e5eb/schema)
