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.