修改/通过互联网连接PC 2 PC [英] Revised / Connect PC 2 PC Over Internet

查看:75
本文介绍了修改/通过互联网连接PC 2 PC的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友
我是C#的新手.

可以使用C#通过Internet将一台PC与另一台PC连接起来.如果可能的话,该怎么做,请给我一些示例代码.

感谢您的回答.我从Google取得了许多服务器和客户端示例.所有服务器和客户端都可以在局域网中正常工作.但是在Internet上失败了.是否需要其他编码?

问候
ak.naser

Dear Friends
I am New To C#.

Is Possible to Connect One PC With Another One Over Internet in C#. If It Is Possible What is the way To done and any one give me some sample code please.

Thanks for your answers. I took many server and client sample from google. All server and clients are well work in LAN. But failed In Internet. Any Additional coding need?

Regards
ak.naser

推荐答案

当然可以.您可以使用Windows套接字,远程处理或WCF. Google是您的朋友.

几年前,我尝试了旧的string-between-two-cans方法,虽然它确实起作用,但吞吐量却相当缓慢.
Of course it''s possible. You can use Windows sockets, remoting, or WCF. Google is your friend.

I tried the old string-between-two-cans method a few years ago, and while it did work, throughput was pretty slow.


这可能对您有所帮助..,

浏览以下链接

This may helps you ..,

Go through the below link

Here[^]


这篇关于修改/通过互联网连接PC 2 PC的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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