Replace getRemoteAddress() to socket().getRemoteSocketAddress()