I am working on integrating reCAPTCHA
with my registration page and everything seems working fine except one strange issue.
I have tested this code on all local machines and well on our test server (window) and everything is working.
We have just setup a Linux server (Cents OS 6.0
) and was testing my implementation which is not working on Linux machine.
No matter if I fill captcha correctly or not, I am always getting false as a response.This is my Java code by which I am calling Google's reCAPTCHA API for validation
reCaptcha.checkAnswer(request.getRemoteAddr(), request.getParameter("challengeValue"),
request.getParameter("responseValue"));
I have tried to debug code but not able to find any success so far, only difference I have noticed is about request.getRemoteAddr()
.
request.getRemoteAddr()
is giving different IP for Linux and Window server. (Same browser)
Both Window and Linux server are running on a single Machine with same IP (some kind of virtual box)
I am using recaptcha4j to integrate reCaptcha
API.
For me problem seems to be from Linux setting or configuration which is not known to me.I even talk to our IT guy and he also seems to be clueless.
I have tested this on Ubuntu and it was working fine on that machine even..seems like some configuration issue with Cent OS6