Skip to content

@mega-yfue/eufy-sdk / isPrivateIpv4

Function: isPrivateIpv4()

ts
function isPrivateIpv4(s): boolean;

True for an RFC-1918 private IPv4 (a routable LAN address, not a WAN/public one).

Parameters

s

string

Returns

boolean

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.