set tcp_ports_env for #env