Finished validateInsideIP function