# \#ip

**URL:** https://forum.elixirforum.com/tag/ip/565.md

[Latest](https://forum.elixirforum.com/latest.md) · [Categories](https://forum.elixirforum.com/categories.md) · [Tags](https://forum.elixirforum.com/tags.md)

---

## [Phoenix channel get user IP address](https://forum.elixirforum.com/t/phoenix-channel-get-user-ip-address/36601)

<div class="topic-metadata">

**Author:** [@Fregate](https://forum.elixirforum.com/u/Fregate)\
**Replies:** 5\
**Last updated:** [March 8, 2022, 5:16pm UTC](https://forum.elixirforum.com/t/phoenix-channel-get-user-ip-address/36601 "2022-03-08T17:16:23Z")

</div>

How do I get user’s IP address in mount callback when writing a channel? As far as I can see socket struct does not provide it

---

## [Storing IP address in Ecto](https://forum.elixirforum.com/t/storing-ip-address-in-ecto/19824)

<div class="topic-metadata">

**Author:** [@fireproofsocks](https://forum.elixirforum.com/u/fireproofsocks)\
**Replies:** 11\
**Last updated:** [September 9, 2021, 9:14am UTC](https://forum.elixirforum.com/t/storing-ip-address-in-ecto/19824 "2021-09-09T09:14:53Z")

</div>

What’s best practice for storing IP addresses in Ecto? PostGres has network address fields — is there a way to take advantage of those? How should the migration and schema be defined? Thanks for any tips!

---

## [How to resolve IP address given a URL](https://forum.elixirforum.com/t/how-to-resolve-ip-address-given-a-url/38590)

<div class="topic-metadata">

**Author:** [@bartblast](https://forum.elixirforum.com/u/bartblast)\
**Replies:** 4\
**Last updated:** [March 30, 2021, 6:04pm UTC](https://forum.elixirforum.com/t/how-to-resolve-ip-address-given-a-url/38590 "2021-03-30T18:04:39Z")

</div>

Does anyone know whether it’s possible in HTTPoison or Hackney to return the resolved IP address of the given URL in the response? If it’s not possible, how can I do this? I tried :inet.getaddr(“https://www.google.com”…

---

## [Complexity of a search withing a range in a ets?](https://forum.elixirforum.com/t/complexity-of-a-search-withing-a-range-in-a-ets/21061)

<div class="topic-metadata">

**Author:** [@Fl4m3Ph03n1x](https://forum.elixirforum.com/u/Fl4m3Ph03n1x)\
**Replies:** 8\
**Last updated:** [March 25, 2019, 11:52am UTC](https://forum.elixirforum.com/t/complexity-of-a-search-withing-a-range-in-a-ets/21061 "2019-03-25T11:52:18Z")

</div>

Background We have a file that has lines with IP ranges like the following: IP1, IP2, Country, Region 1.0.0.1, 1.0.0.10, pt, l We use this file to know where an IP belongs to. So, for example, If I am giv…

---

## [Proxy to use a different IP in each request](https://forum.elixirforum.com/t/proxy-to-use-a-different-ip-in-each-request/13941)

<div class="topic-metadata">

**Author:** [@mbenatti](https://forum.elixirforum.com/u/mbenatti)\
**Replies:** 8\
**Last updated:** [September 27, 2018, 9:25am UTC](https://forum.elixirforum.com/t/proxy-to-use-a-different-ip-in-each-request/13941 "2018-09-27T09:25:38Z")

</div>

Hello folks, I’m thinking to write a service to scrape data from a website, but the first requirement is to use some Proxy to change ip address per request. I would love to hear about ideas of how to do it using Elixir…
