Click here to Skip to main content
15,667,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
In one of my WCF application project, I can view the service page through browser, e.g. http://localhost:19648/Service1.svc. In this scenario, in web.config.
    <add baseAddress="http://localhost:19648/Service1" />

However, if I change localhost to my CPU's IP, like that, the page can't be loaded: The connection has timed out. In this scenario in the web.config,
    <add baseAddress="" />

How can this problem be fixed? Thanks.
Updated 13-Sep-13 8:53am
Mehdi Gholam 18-Sep-13 13:25pm    
Disable your firewall and recheck.

1 solution

As mentioned by Mehdi in comments, check your Firewall settings.

Have a look at below link.

You may also try by using useRequestHeadersForMetadataAddress in the serviceBehaviors of your web.config.

Have a look ate below link.
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900