# Getting 429 response when checking ip address

**URL:** <https://forum.kirupa.com/t/getting-429-response-when-checking-ip-address/640950>\
**Category:** programming\
**Created:** [October 27, 2019, 3:49pm UTC](https://forum.kirupa.com/t/getting-429-response-when-checking-ip-address/640950 "2019-10-27T15:49:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jesse\_Liberty](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jesse_liberty/32/10304_2.png) [@Jesse\_Liberty](https://forum.kirupa.com/u/Jesse_Liberty)\
**Post date:** [October 27, 2019, 3:49pm UTC](https://forum.kirupa.com/t/getting-429-response-when-checking-ip-address/640950/1 "2019-10-27T15:49:42Z")

</div>

I’m sorry to have so many questions.

When I check “[https://ipinfo.io/json](https://ipinfo.io/json)” by putting it in a browser, it works fine. But in my code I get a 429 response. Any idea what I’m doing wrong?

---

<div class="post-metadata">

**Author:** ![krilnon](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/krilnon/32/34_2.png) [@krilnon](https://forum.kirupa.com/u/krilnon)\
**Post date:** [October 27, 2019, 5:07pm UTC](https://forum.kirupa.com/t/getting-429-response-when-checking-ip-address/640950/2 "2019-10-27T17:07:34Z")

</div>

I think it’s just a result of that website implementing rate-limiting controls. (HTTP 429 is “too many requests”) My guess is that it’s checking the referring domain to see where the request is coming from. If you’re running on your local machine, it’s going to see “localhost” or similar.

A workaround would be to build your own mini IP info service… could be a fun exercise if you haven’t done much server programming in a while.

---

<div class="post-metadata">

**Author:** ![Jesse\_Liberty](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jesse_liberty/32/10304_2.png) [@Jesse\_Liberty](https://forum.kirupa.com/u/Jesse_Liberty)\
**Post date:** [October 27, 2019, 5:48pm UTC](https://forum.kirupa.com/t/getting-429-response-when-checking-ip-address/640950/3 "2019-10-27T17:48:08Z")

</div>

Great, thanks for the assist. Head back down 🙂

---

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [October 27, 2019, 7:09pm UTC](https://forum.kirupa.com/t/getting-429-response-when-checking-ip-address/640950/4 "2019-10-27T19:09:44Z")

</div>

That is something that has come up quite a bit! This is a side-effect of rate limiting as kril mentions. One way around it is to sign-up for your free ipinfo account. You can use my free token if you don’t feel like signing-up: [IPAddress from React book component only works w/ "on your network"](http://forum.kirupa.com/t/ipaddress-from-react-book-component-only-works-w-on-your-network/639505/14) 🙂

Also, we are all here to help! No need to apologize for having many questions haha ☀
