add port username userpassword config.