method

ip_address

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Addrinfo
ip_address() public

Returns the IP address as a string.

Addrinfo.tcp("127.0.0.1", 80).ip_address    #=> "127.0.0.1"
Addrinfo.tcp("::1", 80).ip_address          #=> "::1"
Show source
Register or log in to add new notes.