connect() to failed (99: Cannot assign requested address

Maxim Dounin mdounin at
Mon Jul 22 16:51:40 UTC 2013


On Mon, Jul 22, 2013 at 12:21:44PM -0400, brainchill wrote:

> Everyone is telling this guy that he's clueless but the bottom line is the
> very first guy that answered the question nailed it ... 
> "The message suggests you've either run out of local sockets/ports,
> or connections are administratively prohibited. You may try unix
> sockets to see if it helps."
> Try setting 
> kernel option  net.ipv4.ip_local_port_range to 1024 65000
> The default setting is 32768 61000

Not really.  The real problem seems to be outlined by Ruslan - 
due to no Apache running nginx is essentially configured to proxy 
to itself, and adding more sockets won't help - they will be 
exhaused as well due to the proxy loop.

Maxim Dounin

More information about the nginx mailing list