Cannot Open Socket Error
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business could not open socket Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
Could Not Open Socket Address Already In Use
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just
Could Not Open A Socket To The Smtp Server
like you, helping each other. Join them; it only takes a minute: Sign up ReCaptcha - Could not open socket up vote 3 down vote favorite Before I ask this question, let me mention I know there
The Dns Server Could Not Open Socket
are several of the exact same questions on the site but I am afraid they can't help me out. Hi, Yesterday my ReCaptcha was working fine but now it's not. I am using the library provided by Google and using the proper code. I did not change any code since yesterday so it should still work. However, when I try to submit the form now the page returns Could not open socket. Edit: I just the dns server could not open socket for address server 2012 checked and fsockopen is enabled on my server. php forms sockets captcha recaptcha share|improve this question edited Sep 27 '13 at 22:31 Matthew Strawbridge 11.2k43765 asked Sep 27 '13 at 16:12 Ridz 1771214 add a comment| 3 Answers 3 active oldest votes up vote 9 down vote accepted Changed the following: define("RECAPTCHA_VERIFY_SERVER", "www.google.com"); to define("RECAPTCHA_VERIFY_SERVER", "74.125.227.48"); Now it works. This is to be edited in the captcha lib php file recaptchalib.php. share|improve this answer edited Sep 27 '13 at 22:32 Matthew Strawbridge 11.2k43765 answered Sep 27 '13 at 22:04 Ridz 1771214 This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. –Cole Johnson Sep 27 '13 at 22:23 4 In case you didn't notice, I am the author and replied to my own post. –Ridz Sep 28 '13 at 15:26 1 i have replaced but nothing happened same error occured "Could not open socket". i have tryed following.. define("RECAPTCHA_VERIFY_SERVER", "www.google.com"); define("RECAPTCHA_VERIFY_SERVER", "74.125.227.48"); define("RECAPTCHA_VERIFY_SERVER", gethostbyname("www.google.com")); define("RECAPTCHA_VERIFY_SERVER", "api-verify.recaptcha.net"); define("RECAPTCHA_VERIFY_SERVER", "128.2.186.116"); define("RECAPTCHA_VERIFY_SERVER", gethostbyname("www.google.com")); –Hiren Kubavat May 30 '14 at 6:36 Works for me! Thanks! –sara_thepot Jul 2 '14 at 6:45 It works now, but I wonder how often Google changes their IP address.. It should work for some time, but it looks like a
connections all over the world. Join today Download & Extend Drupal Core Distributions Modules Themes reCAPTCHAIssues ReCaptcha "Could not open socket" Closed (fixed)Project:reCAPTCHAVersion:7.x-1.12Component:reCAPTCHA CaptchaPriority:CriticalCategory:Support requestAssigned:UnassignedReporter:ReBaCreated:June 15, 2015 - 10:28Updated:July 14, 2016 - the dns server could not open socket for address 1 01:24 Log in or register to update this issue Jump to:Most recent comment the dns server could not open socket for address server 2008 Hi, The reCaptcha module wasn't working because of an error in the SERVER definition. See http://stackoverflow.com/questions/19055472/recaptcha-could-not-open-socket for a solution. Don't know could not open socket wordpress to make a patch of it, because it's functionality provided by reCaptcha? Kind regards Comments Comment #1 Liam Morland CreditAttribution: Liam Morland at University of Waterloo commented June 15, 2015 at 3:26pm Category: Bug http://stackoverflow.com/questions/19055472/recaptcha-could-not-open-socket report » Support request The following post suggests that the problem is that your host has misconfigured IPv6 support. The post just above suggests using gethostbyname() as a work-around, which is better than hard-coding an IP address. https://groups.google.com/d/msg/recaptcha/kCdFdAyOe60/Hy2NN3rSfOoJ Log in or register to post comments Comment #2 Liam Morland CreditAttribution: Liam Morland at University of Waterloo commented June 29, 2015 at 3:10pm Status: Active » Fixed If you https://www.drupal.org/node/2506175 need more help, please re-open and provide details. Log in or register to post comments Comment #3 ReBa CreditAttribution: ReBa commented June 30, 2015 at 9:27am Is it better to do the change manually then (every time)? I was testing locally so what you're saying really makes sense. Log in or register to post comments Comment #4 Liam Morland CreditAttribution: Liam Morland at University of Waterloo commented June 30, 2015 at 2:52pm The best fix is to get IPv6 working properly or disable it altogether. If you can't do that, then apply the change to your local copy of recaptchalib.php. Log in or register to post comments Comment #5 July 14, 2015 at 2:54pm Status: Fixed » Closed (fixed) Automatically closed - issue fixed for 2 weeks with no activity. Log in or register to post comments Comment #6 nicolabeghin CreditAttribution: nicolabeghin as a volunteer commented July 13, 2016 at 8:53pm I think the Stackoverflow fix should be applied to official sources. define("RECAPTCHA_VERIFY_SERVER", gethostbyname("www.google.com")) It solves the issue on our production server, whereping www.google.com leads toping: icmp open socket: Operation not permitted Log in or register to post comments Comment #7 Liam Morland CreditAttribution: Liam Morland at University of Waterloo commented J
Support Search GitHub This repository Watch 1 Star 0 Fork 0 queueit/recaptcha Code Issues 165 Pull requests 0 https://github.com/queueit/recaptcha/issues/26 Projects 0 Pulse Graphs New issue recaptchalib.php: Could not open socket (Fix included) #26 Open GoogleCodeExporter opened this Issue Aug 11, 2015 · 90 comments Projects None yet Labels auto-migrated Priority-Medium Type-Defect Milestone No milestone Assignees No one assigned 1 participant GoogleCodeExporter commented Aug 11, 2015 What steps will reproduce the problem? 1. 2. 3. What not open is the expected output? What do you see instead? The expected action is for the fsockopen (line 80) to connect, and not return false. It is currently returning false because it can't seem to connect to domain names, only IP addresses, on my development server. Obviously this is a problem I need to address as it does could not open it for other things I use fsockopen for. To be fair though the library should accomodate for this, especially as I am not using an obscure setup, it's a typical one if you follow any LAMP guide for Fedora 9 to be honest. I see the error message: Could not open socket. It runs die to produce this error message, so if for whatever reason the RECAPTCHA_VERIFY_SERVER dns does not resolve, the end user doesn't have a clue what has gone wrong, all the form data they have submitted is lost. It should fail gracefully, and allow the form submission to continue without verifying the captcha input. What version of the product are you using? On what operating system? recaptchalib.php (v1.1.0) Currently the latest stable release. Fedora 9 (32bit) Apache 2.2.9/PHP 5.2.6 (installed using yum from official fedora repos) Please provide any additional information below. // To fix the problem, find line 40 in recpatchalib.php and replace: define("RECAPTCHA_VERIFY_SERVER", "api-verify.recaptcha.net"); // With this: define("RECAPTCHA_VERIFY_SERVER", gethostbyname('api-verify.recaptcha.net')); Original issue repor