Added first options for IPv6.
Added IPv6 support and alternative port specification support.