Add length check on remoteAddr parameter as in some cases we were sending an empty parameter