---
sidebar_position: 5
---

# Ping

This API lets you check the reachability of Ollama server.

```java
import io.github.ollama4j.Ollama;

public class Main {

    public static void main(String[] args) {
        String host = "http://localhost:11434/";

        Ollama ollama = new Ollama(host);

        ollama.ping();
    }
}
```