# ECONNREFUSED when on single process internal service

**URL:** <https://community.fly.io/t/econnrefused-when-on-single-process-internal-service/10023>\
**Category:** Questions / Help\
**Created:** [January 13, 2023, 2:49am UTC](https://community.fly.io/t/econnrefused-when-on-single-process-internal-service/10023 "2023-01-13T02:49:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bcomnes](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/bcomnes/32/2563_2.png) [@bcomnes](https://community.fly.io/u/bcomnes)\
**Post date:** [January 13, 2023, 2:49am UTC](https://community.fly.io/t/econnrefused-when-on-single-process-internal-service/10023/1 "2023-01-13T02:49:21Z")

</div>

Running into a weird problem.

I have an http server running in one app (app2.internal) I want to make requests to from another app (app1.internal) using the internal routing IP. Both apps are serving http traffic with the following services config:

```auto
[[services]]
  http_checks = []
  internal_port = 8080
  processes = ["app"]
  protocol = "tcp"
  script_checks = []
  [services.concurrency]
    hard_limit = 25
    soft_limit = 20
    type = "connections"

  [[services.ports]]
    force_https = true
    handlers = ["http"]
    port = 80

  [[services.ports]]
    handlers = ["tls", "http"]
    port = 443

  [[services.tcp_checks]]
    grace_period = "1s"
    interval = "15s"
    restart_limit = 0
    timeout = "2s"

```

From an ssh console inside of app1, app2.internal resolves to an IPv6 address just fine. app1 can ping app2.internal just fine.

If app1 tries to make an http request to app2.local:80, it gets a ECONNREFUSED error.

If app1 sends an an http request to [app2.fly.dev:80](http://app2.fly.dev:80), it works just fine.

How can I make an http request from app1 to app2 using the internal address?

---

<div class="post-metadata">

**Author:** ![kurt](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/kurt/32/43757_2.png) [@kurt](https://community.fly.io/u/kurt)\
**Post date:** [January 13, 2023, 2:56am UTC](https://community.fly.io/t/econnrefused-when-on-single-process-internal-service/10023/2 "2023-01-13T02:56:05Z")

</div>

Make sure `app2.internal` is listening on IPv6. Some frameworks only listen on IPv4 by default. You can typically pass something like `::` to the `listen` directive to do both classes of IPs.

---

<div class="post-metadata">

**Author:** ![bcomnes](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/bcomnes/32/2563_2.png) [@bcomnes](https://community.fly.io/u/bcomnes)\
**Post date:** [January 13, 2023, 4:54am UTC](https://community.fly.io/t/econnrefused-when-on-single-process-internal-service/10023/3 "2023-01-13T04:54:37Z")

</div>

Oh… ok that makes sense. Internal IP is behind the service port mapping load balancer settings. I see. I will try.
