Moved private IP check to this API