method
getaddress
v1_9_2_180 -
Show latest stable
- Class:
IPSocket
getaddress(s)public
Lookups the IP address of host.
IPSocket.getaddress("localhost") #=> "127.0.0.1" IPSocket.getaddress("ip6-localhost") #=> "::1"
getaddress(s)Lookups the IP address of host.
IPSocket.getaddress("localhost") #=> "127.0.0.1" IPSocket.getaddress("ip6-localhost") #=> "::1"