Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Problem with recaptcha when testing it with IIS (localhost)

I am using recaptacha in my application and when i am testing it with IIS then it gives me error "operation time out" on recaptcha.validate method however it's work very fine with local port , what should be the reason of that and what should be solution?

like image 392
Arun Rana Avatar asked Sep 16 '11 12:09

Arun Rana


1 Answers

Bigb is right, recaptcha do requires port 80 to communicate with google servers.

Checkout below threads

  • Operation timed out error
  • Google Groups

You need to add proxy server setting for recaptcha in your web.config file

Example Taken from here

<system.net>
<defaultProxy>
<proxy usesystemdefault = "false" bypassonlocal="false"
   proxyaddress="http://ntproxyus.lxa.perfora.net:3128" />
</defaultProxy>
</system.net>
like image 186
Mayank Pathak Avatar answered Sep 23 '22 14:09

Mayank Pathak