Tryied to implement functionality ,but chrashes when creationg the socket when connecting to server with a IllegalStateException don´t know why ,need help