简体   繁体   中英

Can WCF service with net.tcp bindings be accessed over internet?

I have developed a simple WCF service (hosted in a Windows Service) quite similar to following msdn article.

http://msdn.microsoft.com/en-us/library/ff647180.aspx#Step1

How should i deploy it so that it can be accessed over internet using tcp?

有一件事是它将使用与HTTP(80)不同的端口,并且可能被某些防火墙阻止(可能大多数(如果不是全部的话))。

TCP binding is used only when the clients are from the same network. If your clients are outside of your network you will have to use HTTP protocol like basicHttpBinding or wsHttpBinding.

In real time application you have multiple service endpoints with different kind of bindings like for backoffice and stand alone application you use netTcpBinding and for internet application you use wsHttpBinding.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM