I’m wondering how I can get the IP-address of the instance of my app?
When I look in the control panel I see IPv4 address 66.51.XX.XX
When I SSH into my app and I do a curl (curl -v https://mijnip.net ) I see IPv4 address 185.178.XX.XX.
My app connects to external API’s with IP whitelisting, it also connects to different services that are behind firewalls.
What is the correct way and the fastest way to get the IP of my app instance?
In addition to this, the IP changes every deployment.
Would definitely be great to see the IP of the instance in the CP.
greg
April 7, 2022, 5:30pm
3
As far as I know there haven’t been any further developments on adding this feature:
Hi there,
I don’t think this is something that Fly currently does, but is there any way to set an IP address (or a list/range) that a fly app will use to make requests to external hosts? I’d really like to be able to reliably whitelist Fly apps by IP/list/range/whatever.
I run reverse proxies, and occasionally one or more Fly IPs will get blacklisted by an external host. Since some requests go out through different Fly IP addresses to the external host, we get an intermittent “sometimes it mak…
For now the closest thing you can do is get an IP range from Fly. Since (as you point out) the IP changes. e.g for ams
There are a lot of IPs these could be in Amsterdam, and they could change at any time. If it gets you unstuck you can use them but your life will be way easier if you find some other way to get this working.
Right now they’ll need to allow:
104.225.98.0/24
145.40.96.0/24
147.75.85.0/24
104.225.98.0/24
147.75.87.0/24
1 Like
Thank you for your reply.
Unfortunately whitelisting a range isn’t a option, I’m afraid my app won’t be compatible with Fly just yet then.
Hopefully this is something that will be possible in the future, I’ll be waiting patiently
4 Likes
I don’t change my code and deploy again, it don’t change ip for app.
my problem is the ip assigned is blocked by GFW and it is strange my app’s server is located at Hongkong, but its ip come from Netherland