Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I browse all WCF services on a host?

Tags:

c#

wcf

I want to create a client and a server program using WCF. The communication between them will be TCP. The client will be a windows form where one can insert the host name and then it will list all the servers running on that machine.

Is there a way to do this? I.e. to browse all the WCF services in the machine host?

like image 297
user1034912 Avatar asked Oct 12 '25 15:10

user1034912


1 Answers

WCF Discovery - http://msdn.microsoft.com/en-us/library/dd456782.aspx

Windows Communication Foundation (WCF) provides support to enable services to be discoverable at runtime in an interoperable way using the WS-Discovery protocol. WCF services can announce their availability to the network using a multicast message or to a discovery proxy server. Client applications can search the network or a discovery proxy server to find services that meet a set of criteria.

How to: Programmatically Add Discoverability to a WCF Service and Client - http://msdn.microsoft.com/en-us/library/dd456783.aspx

like image 158
Daniel Holder Avatar answered Oct 14 '25 06:10

Daniel Holder