Get External IP Address
Join the DZone community and get the full member experience.Join For Free
Another snippet code goes here:http://snippets.dzone.com/posts/show/3947 by ttmrichter enjoy:)
require 'open-uri' require 'rubygems' require 'hpricot' puts (Hpricot(open('http://myip.dk'))/"//td/font/b").inner_html
Opinions expressed by DZone contributors are their own.