Fixed the building of the server/port string to be IPv6 safe.