Fixes for ipv6 - passing appropriate parameters for __socketConnect