title: Identifying port on which a serice is ruuning from within that service itself
body: <p>I am writing a WCF service to handle multipart batch requests. Once I get a multipart request which inturn consists of multiple GET requests, I have to execute all those GET request on the localhost. I am able to do so using the HttpClient using the hostname of the machine, but in order to optimize things, I want to skip the DNS lookup. The problem now I facing is how to figure out that on which port my serive is running? </p>