# API Connection Refused

**URL:** <https://forum.algorand.co/t/api-connection-refused/2250>\
**Category:** General\
**Created:** [November 23, 2020, 8:50pm UTC](https://forum.algorand.co/t/api-connection-refused/2250 "2020-11-23T20:50:02Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![peterd](https://avatars.discourse-cdn.com/v4/letter/p/a88e57/32.png) [@peterd](https://forum.algorand.co/u/peterd)\
**Post date:** [November 23, 2020, 10:51pm UTC](https://forum.algorand.co/t/api-connection-refused/2250/7 "2020-11-23T22:51:43Z")

</div>

I was able to reach the api when I ran the code from the node server. Once I properly set the EndpointAddress in config.json, as @fabrice pointed out, the code worked. Thanks for your help.

---

_[View the full topic](https://forum.algorand.co/t/api-connection-refused/2250)._
