this post was submitted on 06 Aug 2026
32 points (100.0% liked)

homeassistant

20250 readers
138 users here now

Home Assistant is open source home automation that puts local control and privacy first.
Powered by a worldwide community of tinkerers and DIY enthusiasts.

Home Assistant can be self-installed on ProxMox, Raspberry Pi, or even purchased pre-installed: Home Assistant: Installation

Discussion of Home-Assistant adjacent topics is absolutely fine, within reason.
If you're not sure, DM @GreatAlbatross@feddit.uk

founded 3 years ago
MODERATORS
 

How do I find out what IPs to give, my IP doesnt stay the same? The local IP is hardly the one they want, it wouldnt make sense I think.

top 30 comments
sorted by: hot top controversial new old
[–] Cyber@feddit.uk 3 points 11 hours ago

Lots of good advice here, 1st thing I'd advise... speak to your ISP.

You'll probably need to do some of the other advice here, but then you'll know the options and if there's a cost... no point renting a VPS and having to set that up if a static IP is cheaper, and maybe the ISP can tell you that you're on a /29 and will only have a few IPs to give to the API team...

[–] Archer@lemmy.world 16 points 1 day ago (1 children)

First of all they’re fucking doing it wrong. Manual IP whitelisting instead of API auth is appallingly dated

[–] a4ng3l@lemmy.world 6 points 1 day ago (1 children)

why would one do either? By whitelisting you entirely prevent traffic. API auth takes processing. How wrong is it? Maybe for your home usage it’s good enough but layering measures has value…

[–] Archer@lemmy.world 3 points 12 hours ago

It means you’re doing boutique instead of scalable, and/or they don’t know how to deal with the traffic and auth infrastructure

[–] SkunkWorkz@lemmy.world 9 points 1 day ago* (last edited 1 day ago) (1 children)

They want the IP that your ISP assigned to your modem. So go to https://whatismyipaddress.com/ to see the IP addresses.

However your ISP can change the IP address whenever they want. If you really need to be sure your IP address never changes then get a VPS with a static IP then run a VPN on it so you can tunnel your connection through that VPS. This way you will always have the same IP even if you change ISP or move.

[–] talentedkiwi@sh.itjust.works 4 points 1 day ago* (last edited 1 day ago)

Another good one ifconfig.me it can be used from a terminal to easily get your IP address

curl ifconfig.me

Super simple and clean response back too.

[–] oantby@lemmy.today 21 points 1 day ago (2 children)

My ISP charges a good chunk for static IP (because they consider it a business connection). However, my $10/mo VPS (which I already had for other projects) has its own static IP and I can easily proxy individual requests through it as needed. Have looked at VPS instances for $5/months before.

Depending on the service, your ISP, and how easily you can change IPs in the registration, as others have mentioned, you could just give them your public. I’ll say my own public does change at least twice a month, so if I can’t automate updating a registration, it goes through VPS or it’s a service I just skip.

[–] Matty_r@programming.dev 3 points 1 day ago (1 children)

I hadn't even considered this to proxy stuff through, can't believe it. Thats a great idea.

Definitely something I need to sort out at some point. Cheers.

[–] Jason2357@lemmy.ca 2 points 1 day ago

If all you need is a static IP and a little traffic, there are free-tier or a couple bucks a month vps options. Use SSH to proxy a single port to connect to their service.

[–] Krusty@quokk.au -1 points 1 day ago

This is the way!

[–] Big_Boss_77@fedinsfw.app 18 points 1 day ago (1 children)

Might be time, if you're serious about it, to reach out to your ISP and price a static public IP.

[–] Krusty@quokk.au 17 points 1 day ago (4 children)

Nooo.

Get a VPS with static IP and tunnel. And cloudflare.

You don't want a residential static IP. You will get (d)DoS. Your ISP will terminate you.

[–] Damage@feddit.it 13 points 1 day ago* (last edited 1 day ago) (2 children)

I've had a static IP for years, serving all kind of stuff, and had zero problems. Home assistant, Jellyfin streaming, Bittorrent and more.

[–] Krusty@quokk.au 1 points 12 hours ago

They'll scan your ip range eventually (repeatedly). Keep up with your patches.

[–] BlueEther@no.lastname.nz 5 points 1 day ago

I have to agree. Had a static ip for years

[–] talentedkiwi@sh.itjust.works 2 points 1 day ago

I'd recommend pangolin on a vps and skipping cloudflare. It makes the tunnel super simple. Just make sure to harden then VPS.

[–] Squizzy@lemmy.world 2 points 1 day ago* (last edited 1 day ago) (1 children)

I dont have the knowledge or equipment for this. It would be my goal but I am anxious about exposing my home network and need to wrap my head around my options.

YAML has me in a heap as it is so that is definitely out of range

Why would I be a target for ddos?

Having a static IP is not the same as exposing your local network to the internet. It also does not automatically make you a target for DDoS attacks.

If you don't have public facing web services, its incredibly unlikely that anyone is going to DDoS you. That would be a total waste of time and resources.

Every modem connected to the internet (WAN) has an IP address. Most of then are dynamically assigned by your ISP and can change occasionally.

Static IP's are also assigned by your ISP but are assigned to your account/modem and do not change.

If the API you're trying to connect to absolutely requires a static IP, you can ask your ISP for one. If they offer them -- some ISP's don't for residential accounts -- they'll probably charge you a small monthly fee. Mine is $10/ month.

If you get a static IP, you will need to know how to configure it in your router. Its not super complicated and can be done with a little bit of research.

If you can get the API provider to forgo the static IP requirement and you aren't self hosting any public facing services, then you don't need a static IP and it would be a waste of money more than anything.

Side note: you should definitely not expose anything on your local network to the WAN unless you absolutely know what you're doing.

[–] Big_Boss_77@fedinsfw.app 3 points 1 day ago

Not a bad idea, I was simply keeping my explanation simple.

[–] archy@lemmy.world 2 points 1 day ago

If you use whois ip.address it will give you a subnet mask, the "company" may accept that

[–] aarch64@programming.dev 9 points 1 day ago (1 children)

There's a decent chance your public IP, even though not technically static, doesn't change all that often. Depends on your ISP, but I've only had my public IP change unexpectedly once over ~5 years of self-hosting and that was after a 24-hour power outage.

Yep, before I got a real, actual static IP I had a "sticky" IP that only changed once over 5 years, and they sent an email warning of it first. but most ISPs will offer a static IP upgrade for a reasonable price, even if they dont advertise it.

now I have a static IP and a giant IPV6 allocation to play with too.

[–] deadbeef79000@lemmy.nz 6 points 1 day ago (1 children)

Your ISP will have a block of IPv4 address space. Go to any of the websites that will tell you your IP address, some might even tell you the block (otherwise other sites will tell you what the block is). Your ISP might even just tell you this.

E.g. your public IP might be 12.34.56.78 and the block might be 12.34.0.0/16.

You can give the block to your vendor saying you'll be coming from one address in that range. That way no matter what IP you get issued it'll be allowed.

[–] SkunkWorkz@lemmy.world 3 points 1 day ago

They will probably never do that. Then anyone in that block can use the API.

[–] sudoMakeUser@sh.itjust.works 5 points 1 day ago (1 children)

Definitely see how often your public IP changes. I got a few months into my new fibre connection and I realized that my address hasn't changed. Two years in I'm hosting a bunch of websites on it and my address hasn't changed once. Regular residential fibre connection.

[–] mushroommunk@lemmy.today 4 points 1 day ago

Especially if you go ipv6. I've noticed many of my friends and I get new addresses almost never now that I've slowly migrated at least our web apps to ipv6.

[–] Nugscree@lemmy.world 1 points 1 day ago (1 children)

You could get a free dynDNS name with noip.com (you'll need to verify the domain every month by logging in) this way even if you have a dynamic ip, it automatically gets updated via the hostname if you set this in your router (most brands should be able to do this).

[–] 3abas@lemmy.world 1 points 1 day ago

That wouldn't work for this...

A domain, a full fledged one or a free dyndns subdomain tells the world how to communicate with your ip, but it isn't involved when you talk to the world.

When your software is hitting the API from your network, all the API sees is your IP address, it has no knowledge of any urls that may point to it.

OP just needs to hope their IP address doesn't change regularly, and give them their public IP to whitelist.

I’ll second a static IP from your ISP is probably what you need. However oven never had one and I don’t think my external IP ever changed. As long as the integration isn’t critical, given my own experience, I’d probably risk it and then decide if I needed to get a static IP.

Now you might also consider getting a n inexpensive VPS and route through that server which would likely have a static out bound block of IPs.

Smarter people than me are here though. I’m still in the “fear of opening ports to the internet” while at home phase.

[–] roofuskit@lemmy.world 3 points 1 day ago