Change : for | to delimite the optional port in the hosts file
This should add support for IPv6 too