fix compilation warning
Handle server names with ports in them.