# Unable to reach localhost - Custom Models

**URL:** <https://forum.cursor.com/t/unable-to-reach-localhost-custom-models/66440>\
**Category:** Help\
**Created:** [March 18, 2025, 11:31pm UTC](https://forum.cursor.com/t/unable-to-reach-localhost-custom-models/66440 "2025-03-18T23:31:26Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sub01](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/sub01/32/35415_2.png) [@Sub01](https://forum.cursor.com/u/Sub01)\
**Post date:** [March 18, 2025, 11:31pm UTC](https://forum.cursor.com/t/unable-to-reach-localhost-custom-models/66440/1 "2025-03-18T23:31:26Z")

</div>

Got a custom model to be named “default” to bypass validation but it seems like its getting this error when trying to call the model:  
Attempted to connect to internal IP in @rawExternalApiProxyService.axiosPost

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/9/e/9e545714d1d00f5aa63a8d59bd275937e11265d6.png)

Base URL is set to: [http://localhost:11434/v1](http://localhost:11434/v1)

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [March 18, 2025, 11:33pm UTC](https://forum.cursor.com/t/unable-to-reach-localhost-custom-models/66440/2 "2025-03-18T23:33:47Z")

</div>

If you are using a proxy for AI models or setup a local URL, note that Agent cant access your local proxy as its run from Cursor servers.

I think Ask mode works with local proxies.

Try a new chat with Ask mode to see if that works

---

<div class="post-metadata">

**Author:** ![Sub01](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/sub01/32/35415_2.png) [@Sub01](https://forum.cursor.com/u/Sub01)\
**Post date:** [March 18, 2025, 11:34pm UTC](https://forum.cursor.com/t/unable-to-reach-localhost-custom-models/66440/4 "2025-03-18T23:34:52Z")

</div>

Strangely, its currently set to ask mode:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/2/2/22c30e7436a091a87375f7051cd15c34c14c7108.png)

---

<div class="post-metadata">

**Author:** ![condor](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/condor/32/73148_2.png) [@condor](https://forum.cursor.com/u/condor)\
**Post date:** [March 18, 2025, 11:39pm UTC](https://forum.cursor.com/t/unable-to-reach-localhost-custom-models/66440/5 "2025-03-18T23:39:01Z")

</div>

@deanrie does the team have any experience with such a case?

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [March 19, 2025, 8:02pm UTC](https://forum.cursor.com/t/unable-to-reach-localhost-custom-models/66440/6 "2025-03-19T20:02:23Z")

</div>

Hey, you unfortunately cannot use locally hosted models within Cursor at the moment!

This is because it’s actually Cursor’s servers that make the final request to the LLM, not your own machine, so our servers have to be able to reach the LLM provider.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [April 18, 2025, 8:03pm UTC](https://forum.cursor.com/t/unable-to-reach-localhost-custom-models/66440/7 "2025-04-18T20:03:14Z")

</div>

Closed on April 18, 2025, 8:03pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
