reliable parsing of port
make it possible to run as ipv6 server