News agency
Data & markets →

ITUpdated 27.11.2026, 14:00

After Strata update, virtual machines lose access to local models: solution

After the Strata update, requests from virtual machines are rejected with a bad-host error. To restore access, local port forwarding and a new API key are required.

Article source · AIDaily

news.hamidun.com

The cause of the failure is protection against DNS Rebinding. Strata only allows requests with a Host header containing localhost or 127.0.0.1. When accessing from a virtual machine via NAT, the gateway address 10.0.2.2 is transmitted, so the server terminates the connection. Modifying the hosts file does not help.

In Windows inside the virtual machine, you need to create a redirection as an administrator: netsh interface portproxy add v4tov4 listenaddress=127.0.0.1 listenport=47831 connectaddress=10.0.2.2 connectport=47831. The rule persists after reboot. In Linux, the same task is solved using iptables rules in the OUTPUT and POSTROUTING chains with DNAT and MASQUERADE.

Then, on the host machine in Strata, open 'More' → 'Api,' copy the API Key, and specify the exact name of the loaded model. In Cline, select OpenAI Compatible, enter the address localhost:47831/v1, the key, and the model identifier.

In Hermes Agent, the connection is edited via 'Settings' → 'Providers' → 'Custom Endpoints' → 'Custom.' The Test button can be ignored after saving: due to an interface error, it accesses /models without /v1 and receives HTML. To verify, select the custom provider in the main model section and send a message in the chat.