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.
XML
<baseAddresses>
    <add baseAddress="http://localhost:19648/Service1" />
</baseAddresses>

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

How can this problem be fixed? Thanks.
Posted
Updated 13-Sep-13 8:53am
v2
Comments
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.
http://social.msdn.microsoft.com/Forums/vstudio/en-US/7d7aefe5-0dd6-4105-bc4b-107a1a70fe77/access-wcf-service-with-ip-address?forum=wcf

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

Have a look ate below link.
http://stackoverflow.com/questions/18202255/cannot-access-wcf-service-remotely
 
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