adding remotePort to connection