DP-132 Replace ip check with something built into ruby.