Every Port can only be used by a single application. In your case, your server and your client (2 applications) are trying to use the same port which is causing the exception.
To fix it, change for example the port for the client from 8189
to 8190