连接到远程设备 [英] Connect to the remote device

查看:73
本文介绍了连接到远程设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我正在使用c#在asp.net中使用生物识别读取器(指纹)来进行时间和出勤项目.如果我想让软件专家与读者交流,请使用以下代码,

Hi ,

I''m doing a time and attendance project using a biometric reader(finger print) in asp.net with c#. If i want my softwate to communicate with the reader , i use the following code ,

bIsConnected = CtrlBioComm.Connect_Net("192.168.1.12", 4370);



192.168.1.12是读取器的IP.
但是现在我想与远程阅读器进行通信.我有一个静态IP.是否可以?有人告诉我,我必须使用Web服务来实现这一目标.任何人都可以引导我..



where 192.168.1.12 is the ip of the reader.
But now i want to communicate with the remote reader. I have a static Ip.. Is it possible?.. Someone told me i have to use web service to achieve this.. Can anyone pls guide me..

推荐答案

如果您可以直接从计算机访问(ping)该设备,则您的应用程序也可以直接访问(ping)该设备,不需要Web服务(将不起作用,WS可以调用WebMethods而不是设备驱动程序功能).

可能您需要编写一些代码才能连接到互联网(例如代理设置),其余部分是相同的.
if you can access (ping) the device from your computer directly, your application can also access the same directly, web service is not required (will not work instead, WS works to call WebMethods not device driver functions).

probably you have to write some code to connect to internet (like proxy settings), rest is the same.


这篇关于连接到远程设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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