fixed bug issue of #1213
fixed initServer failed if no IPV4 or no IPV6
fixed initServer fail while having no IPv6 nor IPv4
Fix for issue #1214 simplified.