简体   繁体   English

如何允许用户通过内部站点提交 WOL 请求?

[英]How to allow users to submit WOL requests through an internal site?

I've been asked to set up a system where a user can visit an internal website from one domain, submit the name of the PC they'd like turned on in another domain, then the server sends a WOL Packet to that PC (through running a program like wolcmd?).我被要求建立一个系统,用户可以从一个域访问内部网站,提交他们想要在另一个域中打开的 PC 的名称,然后服务器向该 PC 发送一个 WOL 数据包(通过运行像 wolcmd 这样的程序?)。

At the moment all of our PC's are set to turn on in the morning before people start working so that they can remote into their PC's from home without someone needing to be there to turn it on, however this is a waste of electricity, especially when the PC isn't being used that day.目前,我们所有的 PC 都设置为在早上人们开始工作之前打开,这样他们就可以在家中远程访问他们的 PC,而无需有人在场打开它,但是这是浪费电,尤其是当那天没有使用PC。

How would you set up a system like this?你将如何建立这样的系统? I've tried looking for a similar problem but failed to find one.我试过寻找类似的问题,但没有找到。 Thank you.谢谢你。

You would have to write a web app that does exactly this, and hopefully checks for some kind of authentication.您必须编写一个 web 应用程序来执行此操作,并希望检查某种身份验证。 Wake-on-lan is really just a specific packet, you can send it from pretty much any program. Wake-on-lan 实际上只是一个特定的数据包,您几乎可以从任何程序发送它。

One possible solution would be to write a Django or Flask app which authenticates the user and then sends a WOL packet using wakeonlan .一种可能的解决方案是编写一个 Django 或 Flask 应用程序对用户进行身份验证,然后使用wakeonlan发送一个 WOL 数据包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM