Cloudflare DDNS Sync
StartSyncChangelog
  • Overview
  • Configuration
  • Functions
  • Cron Expression Syntax
  • Changelog
  • Functions
    • Constructor
    • getIp
    • getIpv6
    • getRecordDataForDomain
    • getRecordDataForDomains
    • getRecordDataForRecord
    • getRecordDataForRecords
    • removeRecord
    • syncByCrontime
    • syncOnIpChange
    • stopSyncOnIpChange
    • syncRecord
    • syncRecords
  • Types
    • DomainRecordList
    • Record
    • RecordData
    • RecordTypes
    • SingleSyncCallback
    • MultiSyncCallback
    • ZoneData
    • ZoneMap
Powered by GitBook
On this page

Was this helpful?

  1. Functions

getIp

cddnss.getIp

Returns the external IP

Returns:

  • The external IP [Promise<string>]

Example:

cddnss.getIp()
  .then((ip) => {
    console.log(`Your IP is ${ip}`); // "Your IP is 0.0.0.0"
  });
PreviousConstructorNextgetIpv6

Last updated 5 years ago

Was this helpful?