Throw an exception if host or port not defined in protocol\udp.