ifconfig-me
Discovers your public IP address using pre-defined checkers (external services).
Install
npm install ifconfig-me
Usage
import publicIP from "ifconfig-me";
console.info(await publicIP());
//=> '46.5.21.123' | 'fe80::200:f8ff:fe21:67cf'
Discovers your public IP address using pre-defined checkers (external services).
npm install ifconfig-me
import publicIP from "ifconfig-me";
console.info(await publicIP());
//=> '46.5.21.123' | 'fe80::200:f8ff:fe21:67cf'
npm i ifconfig-me
5
1.0.3
ISC
6.47 kB
4