modify ipaddr and port lines