modifying port and host settings