
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
react-ip-location
Advanced tools
Get your ip address and location with just a single line of code; get location information of a provided ip address
react-ip-locationSimplest, lightest and fastest JS library to get your ip address and location.
Check current location by a provided ip address.
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|---|---|---|---|---|---|
| Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | 11 ✔ |
Using yarn:
$ yarn add react-ip-location
Using npm:
$ npm install react-ip-location
import React from 'react';
import { getIPLocation, checkIPLocation, getIPAddress } from 'react-ip-location';
export const App = () => {
// In your component
const getMyIP = async () => {
const location = await getIPLocation(); // { ip: "116.255.54.11", country: "AU" }
const checkLocation = await checkIPLocation('42.115.92.231'); // // { ip: "42.115.92.231", country: "AU" }
const ip = await getIPAddress(); // 116.255.54.11
};
getMyIP();
return <div>PAGE COTNENT</div>
};
MIT © WillyVox
FAQs
Get your ip address and location with just a single line of code; get location information of a provided ip address
The npm package react-ip-location receives a total of 62 weekly downloads. As such, react-ip-location popularity was classified as not popular.
We found that react-ip-location demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.