In my testing addr only contains a port if one is specified in the original command.

net.LookupHost won't work if there's a port in however.