add loop to listen on ports and ips in json config