Antigravity over SSH: User location is not supported for the API use

Hello, I’m using google antigravity 1.23.2 on debian 13. I tried with the latest antigravity 2.x IDE too, same problem. I can’t use gemini models, as it is giving me the same error for any of the prompts with all gemini models. With claude it is working, but i run out of tokens fast. If i try it locally without SSH, all gemini model working. With this same SSH connection i was working on this project for 6+ months without problem. IDE running locally, but i connect with SSH to a remote server where the code located (with webserver, database, etc). I have Google AI PRO subscription.

Trajectory ID: d980f203-51de-4ea5-a76d-3a5564d42d..
Error: HTTP 400 Bad Request
Sherlog:
TraceID: 0xef5970a9d69be0..
Headers: {“Alt-Svc”:[“h3=”:443"; ma=2592000,h3-29=“:443”; ma=2592000"],“Content-Length”:[“140”],“Content-Type”:[“text/event-stream”],“Date”:[“Thu, 16 Jul 2026 11:04:35 GMT”],“Server”:[“ESF”],“Server-Timing”:[“gfet4t7; dur=727”],“Vary”:[“Origin”,“X-Origin”,“Referer”],“X-Cloudaicompanion-Trace-Id”:[“ef5970a9d69be0..”],“X-Content-Type-Options”:[“nosniff”],“X-Frame-Options”:[“SAMEORIGIN”],“X-Xss-Protection”:[“0”]}

{
“error”: {
“code”: 400,
“message”: “User location is not supported for the API use.”,
“status”: “FAILED_PRECONDITION”
}
}

Also this is a server in production. I can’t use VPN on it for external traffic. After sever days of this problem and trying several prompts to gemini to solve this problem, finaly i found the solution. I disabled IPv6 traffic to google (i can’t disable IPv6 on the whole server), promts working!!

sudo ip6tables -A OUTPUT -d 2001:4860:4000::/36 -j REJECT --reject-with icmp6-port-unreachable
sudo ip6tables -A OUTPUT -d 2a00:1450:4000::/36 -j REJECT --reject-with icmp6-port-unreachable