---
title: "Get private/local IP address of the server"
method: GET
path: "/platform/private-ip"
tags: ["Platform"]
---

# Get private/local IP address of the server

`GET /platform/private-ip`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/platform/private-ip`
- Auth: HTTP bearer

## Response `200`

Successfully retrieved private IP address

- PrivateIpInfo: Information about private/local IP addresses
  - `ipv4_addresses` NetworkInterface[], required: All IPv4 addresses found on non-loopback interfaces
    - `address` string, required: IP address of the interface
    - `interface` string, required: Name of the network interface
    - `is_link_local` boolean, nullable: Whether this is a link-local address (IPv6)
    - `is_private` boolean, nullable: Whether this is a private IP address (RFC 1918)
    - `is_unique_local` boolean, nullable: Whether this is a unique local address (IPv6)
  - `ipv6_addresses` NetworkInterface[], required: All IPv6 addresses found on non-loopback interfaces
    - `address` string, required: IP address of the interface
    - `interface` string, required: Name of the network interface
    - `is_link_local` boolean, nullable: Whether this is a link-local address (IPv6)
    - `is_private` boolean, nullable: Whether this is a private IP address (RFC 1918)
    - `is_unique_local` boolean, nullable: Whether this is a unique local address (IPv6)
  - `primary_ip` string, nullable: The primary private IP address (most likely to be useful)

## Other responses

- `401`: Unauthorized
- `403`: Insufficient permissions
- `500`: Failed to enumerate network interfaces

## Changes

- **2026-09-19** `d926c3701fed`: 1 info
  - added the media type `application/json` for the response with the status `200`
- **2026-09-18** `5950f88ce7da`: 1 info
  - added the non-success response with the status `500`
- **2026-04-25** `774be20905f2`: 3 info
  - the endpoint scheme security `bearer_auth` was added to the API
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`

[Operation history](https://skmtc.dev/gotempsh/apis/temps/changes/platform/private-ip/get.md)

---

[API](https://skmtc.dev/gotempsh/apis/temps.md) - [All operations](https://skmtc.dev/gotempsh/apis/temps/llms.txt) - [OpenAPI document](https://skmtc.dev/gotempsh/apis/temps/revisions/3b040526eb43?raw)
