allow to specify the protocol, defaults to TCP can be switched to UDP