Error: OS 10049 Sock/listen/bind ???

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Error: OS 10049 Sock/listen/bind ???

Postby techdls » 05. July 2011 03:58

I had XAMPP working properly (Win7 x64) then I stopped apache and tried to start it again to no avail. I'm getting error

OS 10049: The requested address is not valid in its context. :make_sock could not bind to address xxx.xxx.xxx.xxx:80 no listening sockets available, shutting down.

It will work when I switch it to my internal network but then obviously its not world accessible. I have the address forwarded in the router etc, like I said I had it working so I don't know why it isn't now. It's also not running two instances, only as the module, not the service. Any help would be greatly appreciated.
techdls
 
Posts: 2
Joined: 05. July 2011 03:50

Re: Error: OS 10049 Sock/listen/bind ???

Postby JonB » 05. July 2011 12:59

First, are you running or have recently installed or upgraded Skype?? If so se what ports its running on. XAMPP uses BOTH 80 and 443 by default when it starts Apache (http and https)

Microsoft uses IIS (which comes as part of the OS) for Web based remote management.

Did you run the Port Check??? You didn't say whihc version XAMPP - Port check only checks the DEFAULT XAMPP ports.

A. What error REALLY means is WINDOWS cannot allocate that socket.

all error codes that are 'OS' or contain a 10nnn code are operating system errors.
http://msdn.microsoft.com/en-us/library ... 68(v=vs.85).aspx

That means the combination of IP address and port in this case.

SOO - check your Listen directive(s).

If you have 'named' an IP in the Listen Directive, try changing it to Listen 80, and see what happens when you restart.

This is particulalry true if you have exposed your machine to the Internet.

B. if that fails, You should run a port monitor like ActivePorts or Currport (both free) ya know - you may want to make sure tehy work right on Win 7, MS rebuilt its IP Stack for Vista, 2008 and Win 7.

http://www.devicelock.com/freeware.html

http://www.nirsoft.net/utils/cports.html

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Error: OS 10049 Sock/listen/bind ???

Postby techdls » 05. July 2011 13:20

I'm not running Skype, and before this problem occurred I had to uninstall Team-viewer because it was using port 80.

I did run a port scan to see if any other applications were trying to use it but none were.

Just so you know, the first link is dead that you sent.

I changed the config from Listen xxx.xxx.xxx.xxx:80 to Listen 80 and now it seems to be working and accessible externally (I don't have a domain name associated with it yet so I can't check that.)

Do I really want to leave it like this though? I had it as Listen xxx.xxx.xxx.xxx:80 before and it worked. (In the meantime thank you, I can resume development).
techdls
 
Posts: 2
Joined: 05. July 2011 03:50

Re: Error: OS 10049 Sock/listen/bind ???

Postby JonB » 05. July 2011 13:35

Hi there -

the link is dead because phpBB parsed it wrong - see the .aspx ????

What happened when you tested changing the Listen line confirms the problem. The OS (windows) has bound that IP to a service.

You may not need an IP specific Listen directive UNLESS youer machine is multi-homed (has more than one NIC {of any sort}).

What Windows is actaully saying is that that specific IP and port are bound to a service.

You probably should try two things:

A. - Start Apache

B. - try to access your server by suing the IP of your router (plus port if needed)

If you are using Name Virtual Hosts, you will have to patch your 'hosts' file with

xxx.xxx.xxx.xx http://www.yourflippingdomain.com

Good Luck
8)
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 44 guests