add protocol and port.