Changed ip() to return null when client has disconnected