May 2001
Intermediate to advanced
1088 pages
30h 13m
English
| Q1: | Why does it say the port is in use? |
| There is probably another program running that uses that socket number. Type netstat -a (if you're running Windows or Unix/Linux) and look for the port number you are trying to use. If you find the port and see the word LISTENING off to the right, that socket is in use. |
| Q1: | What does TIME_WAIT mean in netstat –a, and why do I get a port in use error when the port has a TIME_WAIT status? |
| Sometimes when you stop a server, it takes some time to shut down all the socket connections. You usually see TIME_WAIT occur when you stop a server that has active connections without first stopping all the clients. Give it a minute or two and it should stop waiting. |
Read now
Unlock full access