StreamDownloadClient EndPoint Settings

Wanted to download multimedia files from tridion content so using StreamDownloadClient however giving endpoint error. Can anyone help me to have proper endpoint setting for console application?

 

Getting below error:

There was no endpoint listening at server-cm:12300/.../streamDownload_basicHttp that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.

Using below code to connect endpoint:

var binding = new BasicHttpBinding
{
//TransactionFlow = true,
SendTimeout = new TimeSpan(0, 2, 00),
ReceiveTimeout = new TimeSpan(0, 2, 00),
MaxReceivedMessageSize = 209715200,
ReaderQuotas = new XmlDictionaryReaderQuotas
{
MaxStringContentLength = 2147483647,
MaxArrayLength = 2147483647
},
};

EndpointIdentity epi = EndpointIdentity.CreateDnsIdentity(CMSServer);
var uri = new EndpointAddress(new Uri(string.Format("http://{0}:12300/webservices/CoreService2013.svc/streamDownload_basicHttp", CMSServer)), epi, new AddressHeaderCollection());
_coredownload = new StreamDownloadClient(binding, uri);
_coredownload.Open();
return true;