configure port and host