Skip to content

Instantly share code, notes, and snippets.

@pdeschen
Created December 10, 2010 19:37
Show Gist options
  • Save pdeschen/736679 to your computer and use it in GitHub Desktop.
Save pdeschen/736679 to your computer and use it in GitHub Desktop.
http client ip output
#!/usr/bin/ruby
require "cgi"
cgi = CGI.new("html3")
cgi.out() do
ENV['REMOTE_ADDR']
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment