From: Ben Aroia Date: 2008-03-30T17:24:14+09:00 Subject: Re: remote ip address Martin Boese wrote: > The remote ip is a CGI parameters. All webservers should set this, you > can > read it with (assuming you use CGI): > > require 'cgi' > $stderr.puts "Remote Addr: #{CGI.new.remote_addr}" > > Martin Thanks. I simply did the following:
"; ?> and then a ip = cgi['ip'] in the ruby script. -- Posted via http://www.ruby-forum.com/.