added ip back in to the listn() function