bugfix for get_listen_ip