curl --request POST \
--url https://rdp.sh/api/v1/servers/{server}/ip-changes \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"subnet": "198.51.100.0/24"
}
'import requests
url = "https://rdp.sh/api/v1/servers/{server}/ip-changes"
payload = { "subnet": "198.51.100.0/24" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({subnet: '198.51.100.0/24'})
};
fetch('https://rdp.sh/api/v1/servers/{server}/ip-changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rdp.sh/api/v1/servers/{server}/ip-changes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'subnet' => '198.51.100.0/24'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rdp.sh/api/v1/servers/{server}/ip-changes"
payload := strings.NewReader("{\n \"subnet\": \"198.51.100.0/24\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://rdp.sh/api/v1/servers/{server}/ip-changes")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subnet\": \"198.51.100.0/24\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rdp.sh/api/v1/servers/{server}/ip-changes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"subnet\": \"198.51.100.0/24\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "The IP address change has been queued",
"invoice_id": 5013,
"amount_charged": 2.5,
"ip_change": {
"id": 42,
"server_id": 123,
"status": "running",
"subnet": "198.51.100.0/24",
"step": "Waiting for the server on its new address",
"progress": 80,
"old_ip": "203.0.113.10",
"new_ip": "198.51.100.20",
"invoice_id": 123,
"refunded": true,
"error": "<string>",
"created_at": "2026-10-22T12:00:00+00:00",
"finished_at": "<string>"
}
}{
"status": false,
"error": "Insufficient balance",
"required": 2.5,
"available": 1
}{
"status": false,
"error": "This action is unauthorized"
}{
"status": false,
"error": "198.51.100.0/24 has no free address for this server. Please choose another subnet.",
"ip_change": {
"id": 42,
"server_id": 123,
"status": "running",
"subnet": "198.51.100.0/24",
"step": "Waiting for the server on its new address",
"progress": 80,
"old_ip": "203.0.113.10",
"new_ip": "198.51.100.20",
"invoice_id": 123,
"refunded": true,
"error": "<string>",
"created_at": "2026-10-22T12:00:00+00:00",
"finished_at": "<string>"
}
}Change Server IP Address
Moves a server onto a new IPv4 address in the same location for a one-time fee of €2.50 (VAT of your country included), paid from your account balance. The server keeps its data.
The change then runs on its own, usually within a few minutes; follow it with
GET /ip-changes/{ipChange}. A Linux server restarts once and boots with new
SSH host keys, so SSH drops for a minute or two. On a Windows server, Remote
Desktop drops for about a minute while the address switches. The old address
is released afterwards, and its reverse DNS goes with it. An IPv6 address, if
the server has one, changes with it.
A change that fails puts the server back on its old address, and the fee is credited back to your balance.
curl --request POST \
--url https://rdp.sh/api/v1/servers/{server}/ip-changes \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"subnet": "198.51.100.0/24"
}
'import requests
url = "https://rdp.sh/api/v1/servers/{server}/ip-changes"
payload = { "subnet": "198.51.100.0/24" }
headers = {
"Authorization": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({subnet: '198.51.100.0/24'})
};
fetch('https://rdp.sh/api/v1/servers/{server}/ip-changes', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://rdp.sh/api/v1/servers/{server}/ip-changes",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'subnet' => '198.51.100.0/24'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://rdp.sh/api/v1/servers/{server}/ip-changes"
payload := strings.NewReader("{\n \"subnet\": \"198.51.100.0/24\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://rdp.sh/api/v1/servers/{server}/ip-changes")
.header("Authorization", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"subnet\": \"198.51.100.0/24\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://rdp.sh/api/v1/servers/{server}/ip-changes")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"subnet\": \"198.51.100.0/24\"\n}"
response = http.request(request)
puts response.read_body{
"status": true,
"message": "The IP address change has been queued",
"invoice_id": 5013,
"amount_charged": 2.5,
"ip_change": {
"id": 42,
"server_id": 123,
"status": "running",
"subnet": "198.51.100.0/24",
"step": "Waiting for the server on its new address",
"progress": 80,
"old_ip": "203.0.113.10",
"new_ip": "198.51.100.20",
"invoice_id": 123,
"refunded": true,
"error": "<string>",
"created_at": "2026-10-22T12:00:00+00:00",
"finished_at": "<string>"
}
}{
"status": false,
"error": "Insufficient balance",
"required": 2.5,
"available": 1
}{
"status": false,
"error": "This action is unauthorized"
}{
"status": false,
"error": "198.51.100.0/24 has no free address for this server. Please choose another subnet.",
"ip_change": {
"id": 42,
"server_id": 123,
"status": "running",
"subnet": "198.51.100.0/24",
"step": "Waiting for the server on its new address",
"progress": 80,
"old_ip": "203.0.113.10",
"new_ip": "198.51.100.20",
"invoice_id": 123,
"refunded": true,
"error": "<string>",
"created_at": "2026-10-22T12:00:00+00:00",
"finished_at": "<string>"
}
}Authorizations
Your API key as it is, without Bearer. API access is off for new
accounts: until it is turned on under Settings > API, every request
answers 403 with API access is turned off for this account. Turn it on under Settings > API. If the account lists allowed IPs, a request
from any other address answers 403 with This API key is not allowed from <address>.
Body
Response
The change was paid from your balance and queued.