using java networking - problem with Address already in use.
Posted on 2003-03-21
I am using the networking api in java to run a simple chat application. I have modified some code from the deitel book (DeitelMessenger ch 17 vol. 4 of how to program book) but i don't think it is necessary to see that code to understand the problem.
I started the server. tested it with the clients and everything seemed to be working correctly. perhaps i stopped the server incorrectly and now when i try to restart it i get the following message:
java.net.BindException: Address already in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
I fortunately have another computer and have used it as the server and been able to start it and stop it multiple times and point at it with my laptop on my lan. however, i would like to be able to fix it so i can do it all on my laptop. also, i used my pc where the server works and when i tried to start it twice i got the same error above leading me to believe it is still running somehow. but how do i find what piece of code to kill? it isn't in my processes list (using winxp) and i don't know how else to find out if this thing is still running.