I hosted WCF web service C# in a remote Windows VPS running with the basicHttpBinding.
The problem is that I Browse to the service URL on the server machine through remote desktop works fine, but trying to browse using the external IP address (either remotely or EVEN locally) does not work. (it displays to me the browser message "This site can’t be reached") Example:
http://localhost:99/Service1.svc (OK)
http://8.35.36.82:99/Service1.svc from remote desktop of server (OK)
http://8.35.36.82:99/Service1.svc from my machine (Not OK)
I already opened inbound port in server firewall
any ideas??
Web.config
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding" scheme="https" />
</protocolMapping>
<services>
<service name="WebService.Service1">
<endpoint address="http://8.35.36.82:99/WebService/Service1.svc" binding="BasicHttpBinding" contract="WebService.IService1" />
</service>
</services>
<serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
</system.serviceModel>