Similar to the limitation of the Visual Studio Development Web Server (Cassini) that it is only servers on the local host, I have an implementation of the WCF service, which is only required on localhost.
I would not mind accessing other computers, except that the Windows firewall suggests that the program listen on an external network adapter. Since this is only necessary internally, I would prefer to restrict the configuration on the WCF server side so that it does not disable the firewall detector.
Is binding.HostNameComparisonMode = HostNameComparisonMode.Exact correct solution? I do not see how this is enough.
====
Like Cassini, this Service implementation is redundant for something else that requires network connectivity. The client can be configured to connect to a real server or a fake implementation running on the local host.
wcf localhost
Jason kleban
source share