Welcome, guest | Sign In | My Account | Store | Cart

Checks IPv4

Ruby, 3 lines
1
2
3
#!/usr/bin/env ruby
require 'open-uri'
open("http://internet.yandex.ru/"){|f|f.read.scan(/IPv4:\s(\d+\.){3}\d+/);puts $~}
Created by greg zakharov on Fri, 21 Jun 2013 (MIT)
Ruby recipes (14)
greg zakharov's recipes (59)

Required Modules

  • (none specified)

Other Information and Tasks