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 :
  2. IPFS : to get the publicIP and also the local ones
    from the IPFS loal addresses :

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