通过局域网控制远程计算机 [英] Control a remote computer through LAN

查看:103
本文介绍了通过局域网控制远程计算机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好!

我希望我来对地方了.

我是Java网络编程的新手(并且了解C ++和C#的一些技术知识)

我已经阅读了有关此主题的一些快速教程.

我想从一个非常有趣的项目开始.

一台程序(让电话程序A)在一台计算机(让电话计算机A)上运行.一个程序(让调用程序B)运行
在另一台计算机上(让呼叫计算机B).这些计算机连接在LAN网络中.

程序A向计算机B发送一个请求.此请求与锁定计算机B的键盘有关(或为计算机B的屏幕快照拍照).收到此请求后,程序B将反馈发送到计算机A,并且
在计算机A上将有一个带有验证码的窗口,以确保响应是由人产生的.假设计算机A侧的人进入验证码后,可以说计算机B的键盘将被锁定.

我想我的解释很清楚.

因此,请提供快速教程或任何建议,以帮助我开始编写代码.

Hello everyone!

I hope I''m on the right place to ask.

I''m new to network programming in Java (and know some technical stuff in C++ and C#)

I''ve read some quick tutorials about this topic.

I wanna start with a very interesting project.

One program (let call program A) runs on one computer (let call computer A). One program (let call program B) runs
on another computer (let call computer B). The computers are connected in LAN network.

Program A sends a request to computer B. This request is about locking computer B''s keyboard (or take a picture of screen shot of computer B). After getting this request, program B send a feedback to computer A, and
there will be a window on computer A with a CAPTCHA to ensure that the response is generated by a person. After the person on computer A side enters the captcha, let say the computer B''s keyboard will be locked.

I guess my explanation is clear.

So please give a quick tutorial or any sugesstion to get me started writting code.

Any help would be greatly appreciated!

推荐答案

程序A和B将通过套接字连接,就像客户端(B)和服务器(A)一样.客户端可以在计算机B中得到服务,因此它具有执行任务的各种能力.现在,您需要定义一些可以由应用程序执行的特定请求列表.这样该客户端将具有用于处理每个任务的代码.现在服务器将向客户端发送命令,客户端将在其命令处理程序中执行该命令.例如:我们有一个关机任务.现在,客户端将具有用于此关闭任务的处理程序.此处理程序还将处理shutdown.exe处理的参数.现在,服务器使用参数-r发送请求关闭.客户端收到此请求后,将调用"shutdown.exe -r",以便重新启动计算机.
这是执行此类任务的标准方法之一.可以通过这种类型的设计消除防火墙和防病毒类型的问题.
Program A and B will be connected via socket just like client(B) and server(A). Client can be service in the computer B so that it has all kind of power to perform the task. Now you need to define some particular list of request which can be performed by the application. So that client will have a code for handling each task. Now server will send a command to the client and client will perform that command in its command handler. For an example: we have one task of shutdown. Now client will be having a handler for this shutdown task. This handler will also handle the parameters handled by shutdown.exe. Now server sends a request shutdown with parameter -r. After receiving this request, client will call "shutdown.exe -r" so that it restarts the computer.
This is one of the standard way to perform this type of task. Firewall and antivirus type of issue can be removed by this type of design.


这篇关于通过局域网控制远程计算机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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