End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Net::HTTP#ipaddr
ipaddr
lib/net/http.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/net/http.rb, line 769
def ipaddr
started? ? @socket.io.peeraddr[3] : @ipaddr
end
The IP address to connect to/used to connect to