only set tcp/udp if is ip