> For the complete documentation index, see [llms.txt](https://refresh-cx.gitbook.io/refresh.cx-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://refresh-cx.gitbook.io/refresh.cx-docs/server-information/get-ip.md).

# Get IP

Returns the server IPv4 address in dotted form. Falls back to the connection hostname when the address is not IPv4.

## **Syntax**

```lua
refresh.Server.GetIP() -> String
```

## **Return**

{% hint style="success" %}
String (server IP or hostname)
{% endhint %}

## Usage Example

```lua
print(refresh.Server.GetIP())
```
