added listenhost and listenport input variables