"java.net.BindException: Address already in use: connect" ? ?
- From: cmk128@xxxxxxxxxxx
- Date: 28 Jul 2005 02:54:18 -0700
Hi
My java slcient connect to the server may many time by socket. My
problem is: "socket.close()" doesn't release the local port. After
running "new Socket()" many time, it will get "java.net.BindException:
Address already in use: connect" exception.
If i specify the local port to be use by "new
Socket("localhoist",18001,InetAddress.getLocalHost(),18002)", it get
the same error, because "socket.close()" doesn't release the port.
thanks
from Peter (cmk128@xxxxxxxxxx)
.
- Follow-Ups:
- Re: "java.net.BindException: Address already in use: connect" ? ?
- From: Gordon Beaton
- Re: "java.net.BindException: Address already in use: connect" ? ?
- From: Ingo R. Homann
- Re: "java.net.BindException: Address already in use: connect" ? ?
- Prev by Date: Re: import magic
- Next by Date: Re: "java.net.BindException: Address already in use: connect" ? ?
- Previous by thread: opening for java professionals with 5+ exp
- Next by thread: Re: "java.net.BindException: Address already in use: connect" ? ?
- Index(es):
Relevant Pages
|
|