readthefuckingmanual.net

[SOLVED] java.net.BindException: Address already in use bye

Error added: 2005-10-30T02:29:07Z

0 people waiting for the answer...

1 answers found.

Answer 52 (0.0% helpful)

A bind exception for a network application tells us that there is something already listening on that port. Find out what TCP port the application is trying to bind to, then do a \"netstat -an\" and look for that port. If it shows up, some other program is listening to that port and needs to be killed before your java program will bind to it. If the port shows a TIME_WAIT or FIN_WAIT or something like that, and there are none listed as LISTENING or ESTABLISHED, then you must wait for the kernel to tear down the port before your java program will run.
Permalink

Add an answer/solution

If you know the answer, please add your own solution below.
If you don't know, but find out later, please come back and share your answer - there will be other people struggling with this too.


Please enter 61948 here

If you want to be notified via email when this is solved, enter your email address here: