WCF is using the computer name instead of the IP address and cannot be resolved

baileyswalk picture baileyswalk · Jul 28, 2011 · Viewed 23.1k times · Source

I have a WCF service that works fine on the LAN but when trying to access it from outside the service reference fails.

My WCF service is hosted on a win2k3 box that is using a static IP no domain.

Answer

Jorge Barrera picture Jorge Barrera · Jan 26, 2012

This is what worked for me. In config file

< serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
< / system.serviceModel >

If it is set to false, I was getting that crazy computername substitution.

multipleSiteBindingsEnabled="true" seems to be all that I have to do for this to work as it should.