added IP as parameter in example