Skip to content

When custom model used, IP address used is different as local #11989

Closed as duplicate

Description

@Jandev

Pre-submit Checks

Describe the bug

I am using the new "Custom endpoints" feature to connect to one of my models that's being hosted in Microsoft Foundry, it's a GPT-5.3 Codex model.

On this resource, I've got networking restrictions applied. One of them is a couple of IP-addresses added to the allowlist, so I'm able to connect to it from my local machine.

When configuring this model in Warp, I get an error telling me networking restrictions apply to the resource (which is true).

I'm sorry, I couldn't complete that request.

Response stream finished unexpectedly with internal error: POST "https://[my-resource].services.ai.azure.com/api/projects/[my-project]/chat/completions": 403 Forbidden {"code":"403","message": "A Virtual Network is configured for this resource. Please use the correct endpoint for making requests. Check https://aka.ms/cogsvc-vnet for more details."}

It looks like the requests is routed via some external proxy (maybe the Warp model router?). However, I'm explicitly stating to use my own model and also changed the Profile to use my own model. I'd not expect a request to be routed via an external proxy.

I've asked the Warp model what IP-addresses it might be using

For Warp-hosted agents, outbound requests can come from these egress ranges (CIDR blocks):

•  64.6.38.192/26
•  64.6.39.192/26
•  104.128.70.192/26
•  104.128.71.192/26
•  216.176.224.192/26
•  185.212.186.0/24
•  50.31.178.128/26
•  50.31.146.192/26
•  75.102.37.208/28
•  44.253.165.189/32
•  16.145.188.113/32
•  16.145.133.251/32

For the model router question: Warp Agent routes model inference through Warp’s control plane (not a single fixed IP). If you need allowlisting, use the documented Warp endpoints and/or the hosted-agent egress CIDRs above depending on your setup.

If you want, I can also break this down by Warp-hosted vs self-hosted firewall rules.

As mentioned, I'd rather not use the model-router and allow all these IP-addresses. Only my own IP-address should be in the allowlist.

Could this be a bug, or am I missing a feature/checkbox, to disable the model router?

To reproduce

  1. Deploy a model in a network restricted host
    When using Azure, in Microsoft Foundry resource, create a Project and configure the https://[my-resource].services.ai.azure.com/api/projects/[my-project]
  2. Configure the model in Warp (hostname & api key & model name)
  3. Select the custom model in Warp
  4. Ask a question

Expected behavior

To get an answer using my own custom model

Screenshots, videos, and logs

No response

Operating system (OS)

macOS

Operating system and version

26.5

Shell Version

No response

Current Warp version

v0.2026.05.27.15.44.stable_01

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

Activity

  1. added
    bug
    on Jun 1, 2026
  2. warp-for-oss commented on Jun 1, 2026

    @warp-for-oss
    Contributor

    @Jandev

    This issue appears to overlap with existing issues:

    If this report is meaningfully different, please comment with the additional context or distinguishing behavior so a maintainer can review it. Otherwise, a maintainer may close it as a duplicate after review.

    Maintainer details

    I concluded that custom inference endpoint requests are currently routed through Warp's backend, so Azure network allowlists that only include the reporter's local IP will reject them; this matches existing direct-connection/proxy reports..

    Duplicate reasoning

    This is my automated analysis and may be incorrect. A maintainer will verify the details.

    Powered by Oz

  3. added
    area:agent
    duplicate
    enhancement
    repro:high
    triaged
    and removed
    bug
    on Jun 1, 2026
  4. leesa-ui-w commented on Jun 1, 2026

    @leesa-ui-w
    Collaborator

    Hey @Jandev, thanks for reporting this! The Azure 403 is because custom endpoint requests route through Warp's infrastructure. Same issue as #11681. Feel free to add your Azure details there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:agentduplicateenhancementrepro:hightriagedwarp:auto-triage-review

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions