initialize local IP address after the first connection