getLocalAddress() and getRemoteAddress() fixed