Sha256: 72703c15bf2382f1f4d3654d992c168aee703143fa8538e2b1de16677277fcbd

Contents?: true

Size: 376 Bytes

Versions: 6

Compression:

Stored size: 376 Bytes

Contents

#!/usr/bin/env ruby

# Adjust lib path
_lib=File.expand_path(File.dirname(__FILE__) + '/../lib')
$:.unshift(_lib) unless $:.include?(_lib)

require "dldinternet/net/findmyips.rb"
include DLDInternet::Net::FindMyIPs

external = IPAddr.new(getExternal, Socket::AF_INET)
puts
puts "External IP: ".white + "#{external}".green
puts "Internal IP: ".white + "#{getLocal}".green
puts

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
findmyips-1.0.5 bin/findmyips
findmyips-1.0.4 bin/findmyips
findmyips-1.0.3 bin/findmyips
findmyips-1.0.2 bin/findmyips
findmyips-1.0.1 bin/findmyips
findmyips-1.0.0 bin/whatismyip