Problem with recaptcha when testing with IIS (localhost)

I use recaptacha in my application, and when I test it using IIS, then it gives me a "runtime" error using the recaptcha.validate method, however, it works fine with the local port, what should be the reason for this and what should be the solution?

+4
source share
2 answers

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

Checkout below flows

You need to add proxy settings for recaptcha in web.config

Example taken from here

 <system.net> <defaultProxy> <proxy usesystemdefault = "false" bypassonlocal="false" proxyaddress="http://ntproxyus.lxa.perfora.net:3128" /> </defaultProxy> </system.net> 
+3
source

If you run your application on another computer, check the firewall settings, recaptcha requires that port 80 be sent to communicate with Google servers.

+2
source

All Articles