Added IPv6 code into free-port.pl

Added IPv6 code into free-port.pl via the command line -6 flag.