Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 807
baileyswalk Avatar asked Jul 28 '11 17:07

baileyswalk


1 Answers

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.

like image 83
Jorge Barrera Avatar answered Oct 12 '22 14:10

Jorge Barrera