# Troubleshooting Connection Issues

If you encounter issues connecting SoikaAPI to SoikaStack:

**Check Network Connectivity**

1. Verify both services are running:

   ```
   sudo systemctl status soika-docker
   sudo systemctl status soikastack
   ```
2. Test connectivity to the SoikaStack server:

   ```
   curl -I http://[your-ip-address]:4141/version
   ```
3. Verify firewall settings:
4.

````
```
````

````
sudo ufw status
```

Ensure that port 4141 is allowed.
````


---

# 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://soika-labs.gitbook.io/soika-mockingjay/adding-llm-in-mockingjay/troubleshooting-connection-issues.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.
