getUserIP, but can't figure out how to unit test it