Mero
asked on
java.net.BindException: Address in use: bind error
Hi,
I get the port in use error above when implementing this line:
ServerSocket ss = new ServerSocket( portnumber);
Most likely the reason I get it because I run my program over and over as I am testing this.
I know I can restart the server or my machine to resolve this port in use, but is there a way to programmatically resolve this issue? Thanks.
I get the port in use error above when implementing this line:
ServerSocket ss = new ServerSocket( portnumber);
Most likely the reason I get it because I run my program over and over as I am testing this.
I know I can restart the server or my machine to resolve this port in use, but is there a way to programmatically resolve this issue? Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.objects.com.au