IntelliJ kept saying “Failed to connect” to my Ollama instance while curl worked perfectly. Here’s what actually broke and the one-line fix.