# How can I set my node's location?

**URL:** <https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367>\
**Category:** Help\
**Created:** [May 23, 2017, 12:07am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367 "2017-05-23T00:07:33Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:07am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/1 "2017-05-23T00:07:33Z")

</div>

_From @Azulan on Mon Jan 18 2016 08:26:08 GMT+0000 (UTC)_  
  
How can I configure the node to share what City or Country I’m in?  
  
  
_Copied from original issue: [https://github.com/ipfs/faq/issues/91](https://github.com/ipfs/faq/issues/91)_

---

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:08am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/2 "2017-05-23T00:08:05Z")

</div>

_From @lidel on Mon Jan 18 2016 09:41:00 GMT+0000 (UTC)_  
  
These values are [tied to the IP](https://en.wikipedia.org/wiki/Geolocation_software) you use:

Example: [http://freegeoip.net/json/8.8.8.8](http://freegeoip.net/json/8.8.8.8)

---

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:08am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/3 "2017-05-23T00:08:31Z")

</div>

_From @meulie on Sun Mar 27 2016 13:49:51 GMT+0000 (UTC)_  
  
But what if this info is incorrect/inaccurate? Is there a way to tune this?

---

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:08am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/4 "2017-05-23T00:08:46Z")

</div>

_From @lidel on Sun Mar 27 2016 15:34:35 GMT+0000 (UTC)_  
  
I think you need to find out which [data provider](https://en.wikipedia.org/wiki/Geolocation_software#Data_sources) manages your IP range and contact them directly.

As far I know update may take from a few weeks to months.

---

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:08am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/5 "2017-05-23T00:08:54Z")

</div>

_From @RichardLitt on Thu Mar 31 2016 18:34:39 GMT+0000 (UTC)_  
  
@whyrusleeping How would you do this? Or @dignifiedquire, do you know?

---

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:09am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/6 "2017-05-23T00:09:01Z")

</div>

_From @whyrusleeping on Sat Dec 10 2016 01:26:12 GMT+0000 (UTC)_  
  
The answer given by @lidel is correct.

---

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:09am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/7 "2017-05-23T00:09:08Z")

</div>

_From @alexanderattar on Tue Mar 07 2017 22:03:26 GMT+0000 (UTC)_  
  
Does anyone know what would cause the location to be unknown? I set up a remote node and using the tool @lidel gave above ([http://freegeoip.net/json/](http://freegeoip.net/json/)), I have confirmed that the IP location is in New York, but when I visit the webui on the node info page, I see that the location is unknown, and that the node is also not connected to any peers. I’m wondering if I’ve missed something as far as configuration goes. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:09am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/8 "2017-05-23T00:09:13Z")

</div>

_From @Kubuxu on Tue Mar 07 2017 22:06:14 GMT+0000 (UTC)_  
  
The GeoIP database we use was not updated for a long time so some IPs might have wrong/unknown locations.

If you are getting no peers it might be NAT/firewall configuration problem. There are other issues on that too.

---

<div class="post-metadata">

**Author:** ![flyingzumwalt](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/flyingzumwalt/32/12_2.png) [@flyingzumwalt](https://discuss.ipfs.tech/u/flyingzumwalt)\
**Post date:** [May 23, 2017, 12:09am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/9 "2017-05-23T00:09:16Z")

</div>

_From @alexanderattar on Wed Mar 08 2017 17:18:31 GMT+0000 (UTC)_  
  
Ah okay. Thanks for the response @Kubuxu! That sounds like it could be the cause of the unknown location. I do not have any firewall at the moment so the node should be open for connections. I am able to see peers in the console via `ipfs swarm peers` so perhaps it is just an issue with the webui? I can open a new issue if that seems to be the case.

---

<div class="post-metadata">

**Author:** ![tuan3w](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tuan3w](https://discuss.ipfs.tech/u/tuan3w)\
**Post date:** [June 3, 2018, 2:54pm UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/10 "2018-06-03T14:54:48Z")

</div>

Hi there,  
Any update about this, I’m curious about that, too. It seems like IPFS doesn’t use `ipfs-geoip` to detect location any more. I’m not able to search code related to `ipfs-geoip` module in go/javascript client. And in [white paper](https://ipfs.io/ipfs/QmR7GSQM93Cx5eAg6a6yRzNde1FQv7uL6X1o4k7zrJa3LX/ipfs.draft3.pdf), I also could not find any information about how IPFS detect node location.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Mr0grog](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/mr0grog/32/2460_2.png) [@Mr0grog](https://discuss.ipfs.tech/u/Mr0grog)\
**Post date:** [June 4, 2018, 3:42pm UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/11 "2018-06-04T15:42:24Z")

</div>

`ipfs-geoip` is still used (if you are looking at the actual running UI in your browser, the code is minified, so it may not be easy to identify). Here’s where it is in the WebUI source: [https://github.com/ipfs-shipyard/ipfs-webui/blob/master/src/js/pages/connections.js](https://github.com/ipfs-shipyard/ipfs-webui/blob/master/src/js/pages/connections.js)

However, if you take a look at the blame view in the `ipfs-geoip` source, you can see that the copy of the GeoIP database being used hasn’t been updated in more than two years: [https://github.com/ipfs/ipfs-geoip/blame/master/src/generate/index.js#L20](https://github.com/ipfs/ipfs-geoip/blame/master/src/generate/index.js#L20)

---

<div class="post-metadata">

**Author:** ![tuan3w](https://avatars.discourse-cdn.com/v4/letter/t/91b2a8/32.png) [@tuan3w](https://discuss.ipfs.tech/u/tuan3w)\
**Post date:** [June 5, 2018, 4:33pm UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/12 "2018-06-05T16:33:29Z")

</div>

I looks like `ipfs-geoip` is only used for getting location from peer IP address and displaying in webui only. It’s a project from community, not from IPFS org, so I don’t think `ipfs-geoip` is used anymore.

---

<div class="post-metadata">

**Author:** ![Mr0grog](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/mr0grog/32/2460_2.png) [@Mr0grog](https://discuss.ipfs.tech/u/Mr0grog)\
**Post date:** [June 6, 2018, 4:58am UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/13 "2018-06-06T04:58:13Z")

</div>

> [@tuan3w](#):
>
> I looks like ipfs-geoip is only used for getting location from peer IP address and displaying in webui only.

That’s correct — the WebUI is all `ipfs-geoip` has ever been used for. An IPFS node doesn’t really have any concept of geographic location and never has.

> It’s a project from community, not from IPFS org, so I don’t think ipfs-geoip is used anymore.

Just to be clear, even though the WebUI is in `ipfs-shipyard`, that is the source code for the app you get when loading `http://localhost:5001/webui` in your local gateway. Technically, it doesn’t ship as part of `go-ipfs` (it loads on demand from the network), but it is an officially supported part of IPFS.

---

<div class="post-metadata">

**Author:** ![CocoonCrash](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/cocooncrash/32/1362_2.png) [@CocoonCrash](https://discuss.ipfs.tech/u/CocoonCrash)\
**Post date:** [November 27, 2018, 7:49pm UTC](https://discuss.ipfs.tech/t/how-can-i-set-my-nodes-location/367/14 "2018-11-27T19:49:29Z")

</div>

freegeoip is no longer free nor working as it’s been replaced by [ipstack.com](http://ipstack.com)
