Resolve hosts and bind sockets even when the local_port is not set (0)