fixed port & remote client bug