WCF Service Generating Service URLs with Machine name
I created a WCF service and was trying to deploy to a Server 2003 machine on IIS 6. The server was on my internal network and I wanted to test access to the service from my dev machine... so I set up my ASP.NET web application as usual, but when I navigated to my service in my browser from my dev machine, I saw this:
I expected the url to contain the IP address instead of the machine name. After a bit of digging, I found that I needed to make some configuration changes to IIS and change the header setup for my website. I went to Web Site tab for the website and then clicked the advanced button.
I edited the existing identity and added a host header value to match the IP address.
Now, when I request the service, all is well with the world. The addresses are generated properly using the proper header, and I can access my service as expected.