IPP is Ruby library for determining computer public IP address using https://www.ipify.org.
Add this line to your application's Gemfile:
gem 'ipp'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ipp
In Ruby programs:
$ Ipp::get
In console you can use executable:
$ ipp
Bug reports and pull requests are welcome on GitHub at https://github.com/jabre/ipp.
The gem is available as open source under the terms of the MIT License.