fixed initServer failed if no IPV4 or no IPV6