×Welcome aboard! We are happy you are here and wish you good net-raft!

Together We Can Simplify The World

the current number of solutions:  2360
.htaccess (1x)    AJAX (13x)    ANGULARJS (161x)    ASP (1x)    ASP.NET (6x)    BACKBONE.JS (47x)    BOOTSTRAP (12x)    C# (224x)    COFFEESCRIPT (28x)    CSS (71x)    HTML (47x)    JADE (34x)    JAVA (51x)    JAVASCRIPT (430x)    JQUERY (390x)    JQUERY MOBILE (5x)    JSON (5x)    LARAVEL (25x)    MYSQL (9x)    NODEJS (162x)    ORACLE SQL (19x)    PERL (2x)    PHP (295x)    PYTHON (10x)    REACT (62x)    RUBY (25x)    RUBY ON RAILS (1x)    SHELL (2x)    SQL (90x)    SQL SERVER (3x)    TYPESCRIPT (51x)    VB.NET (32x)    W3.CSS (6x)    W3.JS (40x)    
join us

click to create your account

get ip address ruby

(ruby ip address )


 viewed 12



// Here is the complete code

require 'json'
require 'open-uri'

data_hash = JSON.parse(open('http://ipinfo.io').read)

puts data_hash['ip']


created: 19 days ago

The power of the user (%)


Do you know a little more effective code ? Feel free to optimize ...

haven't you found what you're looking for ?
Write us your question ...
Login is not needed.

The most helpful RUBY solutions
Likes Solution Technology
132 get logon server using rubyRUBY
117 Get real client ip address using ruby ?RUBY
83 get values from nested json object using ruby RUBY
64 get client region using rubyRUBY
42 get client latitude and longitude using ruby RUBY
35 get user domain using rubyRUBY
34 get client country using ruby RUBY
32 get keys from json file using ruby RUBY
27 get client hostname using ruby RUBY
19 get client city using ruby RUBY
Check out all of RUBY ...
The most viewed RUBY solutions by country
Solution Country
get computer name rubyCinque Terre
get computer name using rubyCinque Terre
get client hostname using ruby Cinque Terre
get client latitude and longitude using ruby Cinque Terre