Não é possível acessar o serviço WCF remotamente
FUNDO
Nós temos umaServiço da Web do WCF hospedado em umServiço do Windows correndo com obasicHttpBinding.
PROBLEMA
Navegar para a URL de serviço na máquina local funciona bem, mas tentar navegar usando o endereço IP externo (remotamente ou EVEN localmente) não funciona. Exemplo:
http://localhost:8000/booking.svc
(ESTÁ BEM)
http://<external-IP>:8000/booking.svc
(Não está tudo bem)
APP.CONFIG
<system.serviceModel>
<services>
<service behaviorConfiguration="DefaultServiceBehavior" name="HotelManagementSystem.ServiceHost.BookingService">
<endpoint address="" binding="basicHttpBinding" contract="HotelManagementSystem.ServiceHost.IBookingService" />
<host>
<baseAddresses>
<add baseAddress="http://localhost:8000/booking.svc" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="DefaultServiceBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="True" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Alguém tem alguma ideia?