I'm supposed to be storing the user's IP address in a table. I looked up the
docs and chose  CGI.REMOTE_ADDR as the "right" variable. Now the client
emails me and says that all of the form submissions are coming from
127.0.0.1. I check in the database and indeed, every one of the submissions
is shown as coming from that address. So I thought I'd try remote_host, but
that one does the same thing.

So then I dumped the entire CGI scope and every instance of IP address is
lsited as 127.0.0.1. You can see here I'm dumping remote_addr and
remote_host.

http://bigcomfycouch.com/NEWask.cfm

But when I output them via our Perl test script:
http://bigcomfycouch.com/cgi-bin/env.pl

I get the "correct" IP addy.

What's going on?

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244887
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to