# Multi-region application where users / sessions are pinned to one region?

**URL:** <https://community.fly.io/t/multi-region-application-where-users-sessions-are-pinned-to-one-region/7020>\
**Category:** Questions / Help\
**Created:** [September 9, 2022, 1:41am UTC](https://community.fly.io/t/multi-region-application-where-users-sessions-are-pinned-to-one-region/7020 "2022-09-09T01:41:07Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![ignoramous](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ignoramous](https://community.fly.io/u/ignoramous)\
**Post date:** [September 9, 2022, 3:03pm UTC](https://community.fly.io/t/multi-region-application-where-users-sessions-are-pinned-to-one-region/7020/5 "2022-09-09T15:03:06Z")

</div>

Don’t worry about it!

> I’m disinclined to use any fly-specific features (hopefully for obvious reasons).

~~Since Fly assigns public IPs (albeit anycast) per-app and not per-instance (like other VPS out there), DNS-foo wouldn’t be of help, either.~~ (see edit below) You are relegated to use _N_ apps, I guess.

Also, if you do change your mind, a better Fly-specific solution (if you have a say over the code that runs on the clients) for your case would be to use the `Fly-Prefer-Region` header instead ([1](https://community.fly.io/t/fly-prefer-region-header-not-working/6215/6), [2](https://community.fly.io/t/referencing-a-specific-region-via-dns/1833/2)).

* * *

Edit: Looks like one could assign _regional_ IPv4s. Along with some DNS-foo ([1](https://community.fly.io/t/how-do-regional-ips-function/2192/4)), one could possibly redirect traffic to a specific Fly region. I’d guess the usual [$2/mo charges](https://archive.is/yRlE6#anycast-ip-addresses) apply for these additional (regional) public IPv4s.

```auto
# supported regions: iad, lhr, nrt, scl, sea, sin, syd
fly ips allocate-v4 --region iad

```

Ref: [Unable to run allocate-v4 with the --region flag - #3 by kurt](https://community.fly.io/t/unable-to-run-allocate-v4-with-the-region-flag/4537/3)

---

_[View the full topic](https://community.fly.io/t/multi-region-application-where-users-sessions-are-pinned-to-one-region/7020)._
