class Sparoid::PublicIP
- Sparoid::PublicIP
- Reference
- Object
Defined in:
public_ip.crConstant Summary
-
CACHE_PATH =
ENV.fetch("SPAROID_CACHE_PATH", "/tmp/.sparoid_public_ip")
Class Method Summary
-
.by_dns : StaticArray(UInt8, 4)
https://code.blogs.iiidefix.net/posts/get-public-ip-using-dns/
-
.by_http : StaticArray(UInt8, 4)
ifconfig.co/ip is another option
Class Method Detail
def self.by_dns : StaticArray(UInt8, 4)
#
https://code.blogs.iiidefix.net/posts/get-public-ip-using-dns/