Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm having some issues on a Windows 2008 server with some network connections not going through. For instance, in a web application on the server, we need to open a socket connection to another server, and this fails sometimes with the following message:

Only one usage of each socket address (protocol/network address/port) is normally permitted

I looked up the error, which led me to this page: http://msdn.microsoft.com/en-us/library/aa560610(v=bts.20).aspx, which indicates that it might be TCP/IP port exhaustion.

When I perform netstat -n, I get tons of TIME_WAIT connections on port 80.

Does anyone have any idea what could be causing this?

share|improve this question

migrated from superuser.com Feb 8 '11 at 4:42

This question came from our site for computer enthusiasts and power users.

    
are you closing the sockets when you are done? Time_Wait can be adjusted to automatically close after a certain time, but perhaps you are not properly closing the sockets, so they are having to time out. How many is 'tons'? –  Brian Feb 7 '11 at 19:00
add comment

1 Answer

All the remote ports in range of 32768 - 61000 are in TIME_WAIT state and don't release even few tens of minutes after application termination. Our server was running for almost two years without restart.

I have found following: http://support.microsoft.com/kb/2553549

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.