This note is about how to get the IP with simply javascript code, You can easily obtain the ip information of the client (without reply on external services).

with the help of peer-services we have 2 options:

  1. WebRTC to get a LANIP : http://dweb.link/ipfs/QmSsnL5QTC18msyAyVYEqwXrhaDDExvpB5DbVUZVVP6Ezw
  2. IPFS : to get the publicIP and also the local ones
    from the IPFS loal addresses : http://127.0.0.1:8080/ipfs/QmXsRhn66aJWkxamUvwje57NgZnoXDe9bVFxAH3vRPMeq2

note: you’d need an IPFS node running on http://127.0.0.1:8080 for the last point to work