adding function used for autocomplete
added autocomplete for tcp/udp hostnames