Added second argument to pass IP address to script

havent tested this, simply replaced IP address with $2

@TODO: consider setting a default IP if one is not passed.