#!/usr/bin/ruby ip = `curl -sk ifconfig.me` input = gets.chomp if ip.include? "1.2.3.4" puts "my ip" else puts "not my ip #{input}" end