@rqt/ip Returns a public IP address of the host.
yarn add @rqt/ipThe package is available by importing its default function:
import ip from '@rqt/ip'Returns the IP address as seen by an external web-server.
_rqt.IpOptions: Options for the request.
| Name | Type & Description | Default |
|---|---|---|
| host | string | https://api.ipify.org |
| The address from which to get the IP address. |
const GetIp = async (host) => {
const res = await ip({ host })
return res
}127.0.0.1
|
© Art Deco for Rqt 2019 |
|
Tech Nation Visa Sucks |
|---|