# Error: connect EHOSTUNREACH when sending requests to my fly.io app

**URL:** <https://community.fly.io/t/error-connect-ehostunreach-when-sending-requests-to-my-fly-io-app/5686>\
**Category:** General\
**Created:** [June 18, 2022, 8:20am UTC](https://community.fly.io/t/error-connect-ehostunreach-when-sending-requests-to-my-fly-io-app/5686 "2022-06-18T08:20:40Z")\
**Posts on this page:** 1\
**Showing post:** 30

<div class="post-metadata">

**Author:** ![ben-io](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/ben-io/32/35648_2.png) [@ben-io](https://community.fly.io/u/ben-io)\
**Post date:** [May 18, 2023, 3:19am UTC](https://community.fly.io/t/error-connect-ehostunreach-when-sending-requests-to-my-fly-io-app/5686/30 "2023-05-18T03:19:43Z")

</div>

It looks like your app doesn’t have an IPv4 address. This error can occur when you try to connect over IPv4 (i.e. because your ISP doesn’t support IPv6).

You can tell by going to [https://ipv6-test.com/](https://ipv6-test.com/) or trying:

```auto
❯ curl -v ipv6.google.com             
* Trying [2607:f8b0:4006:80b::200e]:80...
* Immediate connect fail for 2607:f8b0:4006:80b::200e: Network is unreachable
* Failed to connect to ipv6.google.com port 80 after 120 ms: Couldn't connect to server
* Closing connection 0
curl: (7) Failed to connect to ipv6.google.com port 80 after 120 ms: Couldn't connect to server

```

The solution is to allocate an IPv4 address. This should give you a free shared address:

```auto
fly ips allocate-v4 --shared

```

---

_[View the full topic](https://community.fly.io/t/error-connect-ehostunreach-when-sending-requests-to-my-fly-io-app/5686)._
