set proxy address and type