Ошибка при запуске сервера. Ошибка сервера; вложенное исключение:
java.net.BindException: адрес уже используется: привязка
Код: Выделить всё
public void start() throws ServerException {
try{
server=new ServerSocket(port); /// here I get the error
while(true){
System.out.println("Waiting for clients ...");
Socket client= this.server.accept();
System.out.println("Client connected ...");
processRequest(client);
}
} catch (IOException e) {
throw new ServerException("Starting server errror ",e);
}finally {
stop();
}
}
Подробнее здесь: https://stackoverflow.com/questions/786 ... n-use-bind