add a check to compare remoteHostIP