Skip to main content

Posts

Fixing Ollama 'Connection Refused' Errors in Docker and Remote Servers

  You have provisioned a server, pulled an LLM like   llama3   or   mistral , and verified it runs via the local CLI. However, the moment you attempt to connect LangChain, Open WebUI, or a custom application to your instance, the runtime throws a   dial tcp 127.0.0.1:11434: connect: connection refused   error. This network rejection halts development immediately. The underlying cause is not a crashed process or a firewall issue, but rather a deliberate security default in how the Ollama daemon binds to network interfaces. This guide details the network mechanics behind the Ollama Docker connection refused error and provides the exact configurations required to safely expose the Ollama API endpoint to external clients. Understanding the Root Cause By default, the Ollama HTTP server binds exclusively to the loopback network interface ( 127.0.0.1  or  localhost ). This is a standard security practice for development tools, ensuring that an unauthenti...

Solving Flutter Debug Install Failures on Vivo Devices (One-Click Auth)

  When executing   flutter run   on a physical Vivo device, the process frequently stalls at "Installing build/app/outputs/flutter-apk/app-debug.apk" or hard-crashes with   INSTALL_FAILED_USER_RESTRICTED   and   INSTALL_CANCELED_BY_USER . Standard Android USB debugging toggles are insufficient to bypass this block. In modern  Flutter app development , deploying to physical hardware is vital for accurate  cross-platform debugging . However, Vivo's proprietary Android skins (Funtouch OS and OriginOS) implement aggressive security layers that intercept standard Android Debug Bridge (ADB) commands. Resolving this requires accessing a hidden system menu via the USSD dialer to grant one-click authorization. The Root Cause of Vivo ADB Rejections Under standard Android Open Source Project (AOSP) architecture, enabling USB Debugging grants the ADB daemon ( adbd ) the necessary  INSTALL_PACKAGES  permission. This allows the Flutter toolchain to co...