Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 206191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:37:25+00:00 2026-05-11T17:37:25+00:00

I have a simple WCF Web service. It’s hosted on IIS under the default

  • 0

I have a simple WCF Web service. It’s hosted on IIS under the default website in our production domain. (local address: 10.10.20.100)

By default this default website was setup for “All Unassigned” IP’s on Port 80: however, I noticed that this caused the WCF Service to generate it’s WSDL using the servers local DNS name. i.e. all the URIs in the wsdl were

http://myserver.subdomain.domain.com/.../...

This was no good as I need to expose this service to sites who have no knowledge of the production environments internal DNS. And this particular server doesn’t have an external DNS Name. Just an external IP Address…

I’ve had some success with changing the Setting in IIS from “All Unassigned” -> “10.10.20.100”

This causes the Service to generate it’s WSDL with the URIs

http://10.10.20.100/.../...

This is fine for other machines within the subdomain and on other subdomains but it’s here that I get stuck. The servers External IP Address (1.2.3.4) is mapped through via some NAT/PAT translation so it isn’t explicitly setup in the servers IP Settings (i.e. it doesn’t show under IP Config)

So if I change the IIS Default Website IP Address from “All Unassigned” -> “1.2.3.4” as I did for the internal address, then the WCF Service just comes back with…

Bad Request (Invalid Hostname)

And if I leave IIS Configured on the Internal IP Address, and try to access the service via the external IP Address I get

No protocol binding matches the given address 
'http://1.2.3.4/TestService/Service.svc'. Protocol bindings are 
configured at the Site level in IIS or WAS configuration

Is there any way to make IIS/WCF generate it’s WSDL URI’s with an external IP Address that isn’t explicitly configured on the server ?

Someone help me please before I dropkick WCF Services out the window.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:37:25+00:00Added an answer on May 11, 2026 at 5:37 pm

    It’s because you don’t have your host headers set. This seems to be an extremely common problem, I run into it all the time. There’s no configuration for the uris that it generates, it looks up the right address by examining the host header of the site. Even if it’s in a virtual directory, you need to go to the parent, in your case, default directory, and add a host header.

    Let me know if you don’t know how to do this.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple WCF service (hosted as its own site in IIS). It
I have written a simple WCF web service which is configured programmaticaly. It exposes
We have a simple ASP.Net WCF Ajax enabled web service which is called via
I have created an Ajax enabled WCF web service that contains this simple method:
I have a simple WCF service: public Order[] GetOrdersByStatus(int statusid) { OrderService os =
I have created a simple wcf service which used the WCF Service Library template.
I have a WCF web service, and I want to use Basic authentication. I
I have a simple WCF service method: [OperationContract] public SetupGameResult SetupGame(long player1Id, long player2Id,
This is real simple. I have a wcf service (nothing fancy, just New Project->
Hello I have a simple wcf service like this, with a test method which

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.