To be able to determine which host is the most applicable host for your scenario, you should refer to your nonfunctional requirements. Typically, nonfunctional requirements state technical requirements for your application to ensure they meet the quality and maintainability of your application. For WCF applications, this comes down to the following topics:
Availability: When do you want to be able to reach your service?
Reliability: What happens when your service somehow breaks? How does this affect other consumers?
Manageability: Do you need easy access to information about what is happening on the host where WCF services live?
Versioning: Do you need to support older versions of the service? Do you know who is consuming your services?
Deployment: What is your deployment model? Are you installing through the Microsoft Installer process and Visual Studio deployment packages, or is xcopy sufficient?
State: Are your services stateless? Do you need sessions?
Based on these nonfunctional requirements, you can decide which host meets your needs.
Follow below link for more detail
Hosting and Consuming WCF Services[
^]
On below links you can find sample code for hosting wcf service
A Beginner's Tutorial on How to Host a WCF Service (IIS Hosting and Self Hosting)[
^]
WCF (Windows Communication Foundation) Example[
^]
A Simple Sample: WCF Service[
^]