Skip to content

Commit a70a2b8

Browse files
committed
Add troubleshooting section for Ollama IPv6/IPv4 connection issues in the doc
closes #310 The fix has been well documented on the README.md file. Signed-off-by: Mushfiqur Rahman Abir <28858998+Abir-Tx@users.noreply.github.com>
1 parent c904a78 commit a70a2b8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,22 @@ oco config set OCO_API_URL='http://192.168.1.10:11434/api/chat'
7474

7575
where 192.168.1.10 is example of endpoint URL, where you have ollama set up.
7676

77+
#### Troubleshooting Ollama IPv6/IPv4 Connection Fix
78+
79+
If you encounter issues with Ollama, such as the error
80+
81+
```sh
82+
local model issues. details: connect ECONNREFUSED ::1:11434
83+
```
84+
85+
It's likely because Ollama is not listening on IPv6 by default. To fix this, you can set the OLLAMA_HOST environment variable to 0.0.0.0 before starting Ollama:
86+
87+
```bash
88+
export OLLAMA_HOST=0.0.0.0
89+
```
90+
91+
This will make Ollama listen on all interfaces, including IPv6 and IPv4, resolving the connection issue. You can add this line to your shell configuration file (like `.bashrc` or `.zshrc`) to make it persistent across sessions.
92+
7793
### Flags
7894

7995
There are multiple optional flags that can be used with the `oco` command:

0 commit comments

Comments
 (0)