A Strata Update Cut Virtual Machines Off from Local LLMs: The Fix Takes 2 Minutes
After a Strata update, programs inside a virtual machine (VM) can no longer reach the local model on the host: Cline and Hermes Agent return a bad-host error. The new DNS Rebinding protection only accepts requests addressed to localhost, while the client inside the VM arrives as 10.0.2.2. The fix takes two minutes: one command inside the VM forwards localhost:47831 to the host, plus a fresh API key from Strata.
AI-processed from Habr AI; edited by Hamidun News
You launched a model, for example a quantized Qwen, in the Strata app on your computer (the host) and connected it to a virtual machine (VM) running VS Code with the Cline plugin or Hermes Agent. Yesterday everything worked, but after the Strata update the setup broke: the client says the key was rejected, the server returns a bad-host error, and the connection test reports a failure. It looks like several things broke at once, but there is one cause. The server now checks which name it is being addressed by, and it stopped accepting requests from the VM's gateway address. The fix takes about two minutes: one command inside the VM and a new key.
Why bad-host appears
The setup used to be simple. A VM in NAT mode sees the host at gateway address 10.0.2.2, so it was enough to point the client at that address and the server port. Now Strata protects itself against DNS Rebinding attacks. This is the same logic as the recent security patches in Ollama and LM Studio, which the author of the original review references.
The protection works like this: the server reads the HTTP Host header in every request. Think of a doorman who only admits people who say the address "localhost" or "127.0.0.1". When the client in the VM connects to 10.0.2.2, the header contains "Host: 10.0.2.2:47831". Port forwarding on the host passes the packet through as is and does not rewrite the header. Strata sees an unexpected name and responds with JSON containing the bad-host code and a request to open the local application.
Editing the hosts file inside the VM will not help. You cannot make the system treat localhost as 10.0.2.2, and the server will reject any other name anyway.
Step 1: port forwarding inside the VM itself
The idea is for the client to connect to localhost:47831 while the system inside the VM forwards the traffic to 10.0.2.2. That way the Host header carries the value the server expects. No reverse proxy or Python script is required.
On Windows, the built-in portproxy mechanism is enough. In an administrator command prompt, run one command: netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=47831 connectaddress=10.0.2.2 connectport=47831. The rule is written to the registry and survives a reboot. To list the rules, use "netsh interface portproxy show all". To delete the rule, use delete v4tov4 with the same listen address and port.
On Linux, iptables achieves the same effect without background processes. First, enable route_localnet through sysctl. Then add a DNAT rule to the OUTPUT chain of the nat table, redirecting 127.0.0.1:47831 to 10.0.2.2:47831, and a MASQUERADE rule in POSTROUTING. To remove them, use the same commands with -D instead of -A.
The listener is bound only to 127.0.0.1, so the port is not exposed outside the virtual machine.
Steps 2–4: the key, Cline, and Hermes Agent
Placeholders such as sk-no-key no longer work for network connections. Open Strata on the host, go to More → Api, copy the generated key, and note the exact identifier of the loaded model, for example unsloth_q8_0.
In Cline inside the VM, open Settings → API Configuration. Select the OpenAI Compatible provider, set Base URL to http://localhost:47831/v1, paste the key, and enter the exact model name. After saving, Cline picks up the model without authorization errors.
Hermes Agent has two non-obvious quirks. First, on the "Settings → Model → Main model" tab, the endpoint address is locked. You need to change it under "Settings → Providers → Custom endpoints" by opening the Custom entry for editing. There, set Endpoint URL to http://localhost:47831/v1, leave API Mode on "Auto-detect", and paste the key. After saving, the key field appears empty, but the key itself is still stored.
Second, do not trust the Test button. It strips "/v1", sends a request to http://localhost:47831/models, receives the Strata interface's HTML page instead, and shows a text/html warning instead of a model list. According to the author, this is a bug in Hermes's validation UI, not a connection problem. Select the "custom (localhost:47831)" provider in the main model settings, click Apply, and send a message in the chat. Requests to /v1/chat/completions go through normally.
What this means
This episode reflects a broader trend: local LLM servers are tightening their security, and the "host plus VM" setup stops working by default. If you are building an agent environment in isolated VMs, include in your instructions a check of the Host header, a current key, and access through localhost specifically.
Caveat: this review is based on the author's personal experience with a specific Strata version and two clients. Port 47831 and the behavior of the Test button may differ in other versions. If something does not work, first check which Host value arrives at the server.
- Nov 26, 2026Microsoft BitNet on a Laptop CPU Delivers 34 Tokens per Second at 0.4 GB of Memory
- Nov 26, 2026Yandex B2B Tech Teaches AI Agents to Collect Data and Build Dashboards in DataLens Platform
- Nov 26, 2026AI Agents Flag 200+ Possible Planet Signals in Kepler Archive and 49 TESS Candidates
- Nov 26, 2026Yumina: open-source engine brings a 2D character to life from a single image
Key Questions Answered
Why bad-host appears?
The setup used to be simple. A VM in NAT mode sees the host at gateway address 10.0.2.2, so it was enough to point the client at that address and the server port. Now Strata protects itself against DNS Rebinding attacks. This is the same logic as the recent security patches in Ollama and LM Studio, which the author of the original review references. The protection works like this: the server reads the HTTP Host header in every request.
What are the key details on Step 1: port forwarding inside the VM itself?
The idea is for the client to connect to localhost:47831 while the system inside the VM forwards the traffic to 10.0.2.2. That way the Host header carries the value the server expects. No reverse proxy or Python script is required. On Windows, the built-in portproxy mechanism is enough. In an administrator command prompt, run one command: netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=47831 connectaddress=10.0.2.2 connectport=47831.
What are the key details on Steps 2–4: the key, Cline, and Hermes Agent?
Placeholders such as sk-no-key no longer work for network connections. Open Strata on the host, go to More → Api, copy the generated key, and note the exact identifier of the loaded model, for example unsloth_q8_0. In Cline inside the VM, open Settings → API Configuration. Select the OpenAI Compatible provider, set Base URL to http://localhost:47831/v1, paste the key, and enter the exact model name. After saving, Cline picks up the model without authorization errors. Hermes Agent has two non-obvious quirks.
Test Frontier LLMs & Autonomous Agents in One Workspace
Run Claude Opus 5.5, GPT-6, Gemini 3.1, and DeepSeek side-by-side in Nomad AI (nomadnet.ai) — unified model routing, deep research, and multimodal workflows under one subscription.
Daily 60-sec AI Voice Brief + Weekly Production AI Agent Playbook
Listen to a 60-second AI news brief every morning and get a weekly hands-on playbook for shipping AI agents to production — tools, MCP servers and patterns that work. Curated by Jemal Hamidun, Head of AI at Alpina Digital.
