doing null check for IPAddress retriaval