Modified host type to char[] for TCP connect