---
id: 18317
lang: en
title: "A Strata Update Cut Virtual Machines Off from Local LLMs: The Fix Takes 2 Minutes"
published_at: "2026-11-26 12:32:20"
source_name: "Habr AI"
source_url: "https://habr.com/ru/articles/1112678/?utm_campaign=1112678&utm_source=habrahabr&utm_medium=rss"
canonical_url: "https://news.hamidun.com/en/news/18317"
categories: ["llm", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

# A Strata Update Cut Virtual Machines Off from Local LLMs: The Fix Takes 2 Minutes

> **Краткая суть (BLUF):** 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.  - Windows: netsh portproxy forwards 127.0.0.1:47831 to 10.0.2.2 - Linux: iptables DNAT in the OUTPUT chain and route_localnet=1 - The sk-no-key placeholder no longer works: get a new key in Strata via More → Api

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.

---
- **Первоисточник:** [Habr AI](https://habr.com/ru/articles/1112678/?utm_campaign=1112678&utm_source=habrahabr&utm_medium=rss)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18317
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
