C#:如何通过互联网上的IP地址访问计算机端口 [英] C#: How to acess ports of computer by his ip adress over internet

查看:293
本文介绍了C#:如何通过互联网上的IP地址访问计算机端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想设计一个应用程序,例如Team Viewer,它将使用他的IP地址从互联网上另一台PC读取PC的串行端口.我想将一些微控制器与串行接口连接起来以读取一些传感器.

有人有什么建议吗?


-谢谢
satya sankar sahoo

I want to design an application, like Team viewer, that will read the serial ports of a pc using his ip address from another pc over the internet. I want to interface some micro-controller with serial port to read some sensors.

Any one have any suggestions?


--Thanks
satya sankar sahoo

推荐答案

您不能.
该服务器无法访问浏览器硬件-您甚至不能说它是PC,更不用说它具有什么类型或数量的端口了.
安全不会允许您.

您必须让用户在PC上运行与串口和您的服务器通信并遵守其命令的应用程序.
You can''t.
The server has no access to the browser hardware - you can''t even tell that it is a PC, let alone what kind or number of ports it has.
Security will not allow you.

You will have to get the user to run an application on the PC which talks to the serial port and your server and obeys it''s commands.


这篇关于C#:如何通过互联网上的IP地址访问计算机端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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