We could probably use -localIp for both ip4 and ip6, but we need to be careful with the default value.

if ((ipv6 == true) && (localIp == DEFAULT_IP4_HOST) localIp = DEFAULT_IP6_HOST

Wait, if we run IP4 and IP6 simultaneously, we will always need two different parameters ,,,
Right?