净TCP/IP WCF服务 [英] Net tcp/ip wcf service

查看:85
本文介绍了净TCP/IP WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI 是否有可能开发一个WCF服务,该服务将使用
在带有IIS的LAN中运行 net.tcp?场景将是这样,说我的WCF服务将在局域网中的计算机中运行
IP地址x.x.x.13:1800,并且可以访问网络中的所有其他计算机
客户.


在此先感谢

HI Can it be possible to developed a WCF service which will run in LAN with IIS using
net.tcp? The scenario will be Say my WCF service will run in a machine in a LAN
with IP address x.x.x.13:1800 and it can be access all other machine in a network
Clients.


Thanks In Advance

推荐答案

是的,可以...但是您需要配置IIS才能接受此连接,请使用以下脚本启用IIS来接受此连接:

打开命令并执行以下命令:
%windir%\ system32 \ inetsrv \ appcmd.exe设置了应用程序默认网站/YourWCF"/enabledProtocols:net.tcp
Yes it is possible... But you need configuration your IIS to accept this connection, use this script for enabled your IIS to accept this connection:

Open the command and execute this:
%windir%\system32\inetsrv\appcmd.exe set app "Default Web Site/YourWCF" /enabledProtocols:net.tcp


这篇关于净TCP/IP WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆