How to determine the WCF address being hosted by a windows service? <p>Basically I have a WCF hosted in multiple Windows Services (before anyone asks IIS cannot be used for multiple and very valid reasons). I have a control application that allows the Windows Services to be stop/started/restarted in special orders (with several differing parameters) etc but I need some way of knowing what address each windows service is hosting i.e. a function that either</p> <ul> <li>given an address e.g. <a href="http://me.us.com:8701/MyWCFService/MyWCFConfig" rel="nofollow">http://me.us.com:8701/MyWCFService/MyWCFConfig</a> returns service name/PID</li> </ul> <p>or better still</p> <ul> <li>given a PID/service name returns the address(es) hosted e.g.<br> <a href="http://me.us.com:8701/MyWCFService/MyWCFConfig" rel="nofollow">http://me.us.com:8701/MyWCFService/MyWCFConfig</a></li> </ul> <p>Any ideas, code or thoughts on this folks?</p> <p>Thanks in advance for taking the time,</p> <p>Brian</p>