Build connection for Host and Client when using TPCast

Follow