add host support for tcp/udp