0
我使用与http://networkip:5678服务主机的basicHttpBinding的,我只是想单纯主机的表态,我没有使用IIS ...WCF本地工作,但不能远程
let host = new ServiceHost(typeof<MyService>, [|new Uri("http://192.168.100.131:5678/")|])
let behavior = new ServiceMetadataBehavior()
behavior.HttpGetEnabled <- true
host.Description.Behaviors.Add(behavior)
let bind = new BasicHttpBinding()
bind.HostNameComparisonMode <- HostNameComparisonMode.StrongWildcard
host.AddServiceEndpoint(typeof<CQGService>, bind, "MyService") |> ignore
host.AddServiceEndpoint(typeof<IMetadataExchange>, bind, "MEX") |> ignore
host.Open()
它的工作原理从本地机器很好,但没有人在网络上可以看到它...我看到另一个帖子要求运行netstat,所以我做了,我可以看到它听取0.0.0.0:5678。有什么我失踪?