Have you looked at passing in request parameters to the get method?
get(url, {}, {'REMOTE_ADDR'=>'123.1.1.1'})