Get the current public IP Address
(i) This uses fetch + https://ip.rjns.dev (located in germany, falkenstein - no logs)
Optional
import { network } from "@rjweb/utils"console.log(`View at http://${(await network.currentIP('v4'))?.long()} or http://[${(await network.currentIP('v6'))?.long()}]`) Copy
import { network } from "@rjweb/utils"console.log(`View at http://${(await network.currentIP('v4'))?.long()} or http://[${(await network.currentIP('v6'))?.long()}]`)
1.8.4
nodejs, browser
Get the current public IP Address
(i) This uses fetch + https://ip.rjns.dev (located in germany, falkenstein - no logs)