[GH-ISSUE #2350] Unable to access ollama server from WSL #47874

Closed
opened 2026-04-28 05:36:02 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @TeamDman on GitHub (Feb 4, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/2350

Running ollama serve in WSL should let me visit http://127.0.0.1:11434/ in my Windows browser.
This worked the other day, now it doesn't.

Using netcat and python3 -m http.server -b 192.168.1.178 8000 to test other apps/ports, it looks like only Ollama is refusing to participate.

Tried running the ollama serve command from inside a vscode terminal in a window using WSL, and vscode reported the port as being forwarded, but it still failed. Plus, this shouldn't be necessary since I had it working in just the windows terminal doing the serve command.

Originally created by @TeamDman on GitHub (Feb 4, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/2350 Running `ollama serve` in WSL should let me visit [http://127.0.0.1:11434/](http://127.0.0.1:11434/) in my Windows browser. This worked the other day, now it doesn't. Using netcat and `python3 -m http.server -b 192.168.1.178 8000` to test other apps/ports, it looks like only Ollama is refusing to participate. Tried running the `ollama serve` command from inside a vscode terminal in a window using WSL, and vscode reported the port as being forwarded, but it still failed. Plus, this shouldn't be necessary since I had it working in just the windows terminal doing the serve command.
Author
Owner

@TeamDman commented on GitHub (Feb 4, 2024):

I restarted the computer and it's just working now. I don't even know.

<!-- gh-comment-id:1925826726 --> @TeamDman commented on GitHub (Feb 4, 2024): I restarted the computer and it's just working now. I don't even know.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#47874