class Geocoder::IpAddress

def loopback?

def loopback?
  valid? and (self == "0.0.0.0" or self.match(/\A127\./) or self == "::1")
end