使用WCF在局域网中的计算机之间进行通信 [英] using WCF to comunicate between computers throght a lan Network

查看:91
本文介绍了使用WCF在局域网中的计算机之间进行通信的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 我想使用WCF通过局域网在计算机之间交流信息. (一台服务器和一些客户端)

我正在搜索互联网,就像几个小时,但我找不到一个好的解决方案.在所有示例中,端点均使用localhost配置.我应该如何配置服务器和客户端的定点?
我正在Windows窗体应用程序中使用WCF

请帮助

Hi I want to use WCF to comunicate Information Between Computers through out a lan network. ( a Server and some clients)

I''m searching internet like a couple hours but i can''t find a good solution. in all examples endpoints are configured with localhost. how should i configure my enpoints for server and client?
i''m using WCF in Windows form app

please help

推荐答案

那又如何?将服务器端点地址更改为真实服务器地址并享受它.

-SA
So what? Change server endpoint address to real server address and enjoy it.

—SA


在端点中使用计算机的IP地址而不是localhost.应该可以.
Use the machine''s IP address instead of localhost in the endpoint. That should do it.


您还可以参考以下链接

与WCF的通信选项-第1部分 [ http://www.codeproject.com/Messages/3652335/Accessing- a-WCF-service-over-LAN.aspx [ ^ ]

http://bloggingabout.net/blogs/dennis/archive/2007/04/20/wcf-simple-example.aspx [ ^ ]

http://www.switchonthecode.com/tutorials/wcf-tutorial-basic-interprocess-communication [^ ]

http://social.msdn.microsoft.com/论坛/en-US/wcf/thread/0d933fe2-5101-4abe-98aa-578249db7006 [ http://social.msdn.microsoft.com /Forums/en-US/wcf/thread/5cb70193-dac5-4010-84cf-30896bb8ec38/ [ http://msdn.microsoft.com/en-us/library/ms789008.aspx [ ^ ]


干杯
you also can refer the following links

Communication options with WCF - Part 1[^]

http://www.codeproject.com/Messages/3652335/Accessing-a-WCF-service-over-LAN.aspx[^]

http://bloggingabout.net/blogs/dennis/archive/2007/04/20/wcf-simple-example.aspx[^]

http://www.switchonthecode.com/tutorials/wcf-tutorial-basic-interprocess-communication[^]

http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/0d933fe2-5101-4abe-98aa-578249db7006[^]

http://social.msdn.microsoft.com/Forums/en-US/wcf/thread/5cb70193-dac5-4010-84cf-30896bb8ec38/[^]

http://msdn.microsoft.com/en-us/library/ms789008.aspx[^]


Cheers


这篇关于使用WCF在局域网中的计算机之间进行通信的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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