# How to set up a protected IP on Windows

We are offering a variety of DDoS filters for Virtual Private Servers, simply open a ticket asking for a DDoS-Protected IP for xx (e.g. FiveM). ($3/mo extra)

Once our support agents reply, you will receive a few commands to run on your Virtual Private Server.

Simply open up PowerShell as Administrator, and paste the commands in one by one.

## Protected IP Setup Example

```
netsh interface ip set address "Ethernet" static 45.144.246.3 255.255.255.224 45.144.246.1
```

{% hint style="warning" %}
You will be disconnected, simply reconnect to your VPS.
{% endhint %}

```
netsh interface ip set dns "Ethernet" static 1.1.1.1
```

```
netsh int ipv4 add address "Ethernet" 45.144.246.34 255.255.255.224 skipassource=true gateway=45.144.246.33
```

And that's it! You might need to configure your gameserver to use your protected IP address instead of your unprotected address.

Please try to keep your unprotected IP as private as possible.

## FiveM Configuration

Edit your server.cfg, and replace the following line:

```
endpoint_add_udp "0.0.0.0:30120"
```

to:

```
endpoint_add_udp "YOUR-PROTECTED-IP:30120"
```

And add the following line:

```
sv_listingIpOverride "YOUR-PROTECTED-IP"
```

That's it! You're all set.

If you have any other questions, feel free to ask in a ticket!


---

# 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://kb.secured.gg/vps/protected-ip.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.
