• 0

Detect Wake-On-Lan packet in VB.Net?


Question

Well, I got a computer working with Wake-on-Lan, and the remote boot is awesome.

However, I would love to be able to remotely shut it down as well, and I was wondering if it was possible to detect a "Magic Packet" and shutdown when it is detected.

I searched around, and only found ONE program that was designed to sniff WOL packets, but it only shows the data, doesn't do anything with it.

I tried using the inbuilt shutdown command, but I always get Access Denied and I'm not sure how to proceed in that way.(If you know how, let me know, this is just as good)

Any help?

(I specified VB.Net, because I code in VB.Net and would like to be able to modify code, or add to it, etc..

Link to comment
https://www.neowin.net/forum/topic/864106-detect-wake-on-lan-packet-in-vbnet/
Share on other sites

10 answers to this question

Recommended Posts

  • 0

So you would rather write a some vb code vs troubleshoot a simple access denied error??

Does the account your trying to use have the right to do so -- guess not if access denied huh ;)

What OSes are you using, and what accounts? In secpol local policy user rights.. You will see that even though users have the right to locally shutdown the machine, the force remote shutdown right is limited to administrators.

So if the account your using is not in the administrators group -- then yeah your going to get access denied.

  • 0

The machine I want to remotely shut down is on Windows XP Professional

The machine I want to shut down FROM is Windows 7 Ult.

I wouldn't know how to grant an account access.

I own both of these machines, so there's only one account on each of them, both of them Administrator.

I've tried many things, even making an admin user account on the Windows XP machine identical to one from my Windows 7 machine.

I'm clueless as to what else to do.

A nice tut in that area would be nice, I can't find a decent one.

  • 0

"I own both of these machines, so there's only one account on each of them, both of them Administrator."

And does this admin account have a password? Is the name actually called administrator? Do the passwords match on each machine??

By default any account in administrators group has permission to force shutdown remotely -- you need need to auth to the machine with that account first, if you do not already have a connection with an account in that machines administrators group

So here is my test xp machine running in virtualbox -- it has user called budman, with a password of Password1. From my win7 machine - I send the correct command, and just like magic it shuts down ;)

As you can see the first time I send it -- access denied.

I then auth to the machine, the IPC$ connection is fine for this sort of thing - or you could just access a share.

I then send the command again - and it shuts down.

post-14624-1263249394_thumb.jpg

Do you have file sharing working to the xp machine? Are you using Simple file sharing? If so you would have to give guest the ability to remotely shutdown..

  • 0
  BudMan said:
"I own both of these machines, so there's only one account on each of them, both of them Administrator."

And does this admin account have a password? Is the name actually called administrator? Do the passwords match on each machine??

By default any account in administrators group has permission to force shutdown remotely -- you need need to auth to the machine with that account first, if you do not already have a connection with an account in that machines administrators group

So here is my test xp machine running in virtualbox -- it has user called budman, with a password of Password1. From my win7 machine - I send the correct command, and just like magic it shuts down ;)

As you can see the first time I send it -- access denied.

I then auth to the machine, the IPC$ connection is fine for this sort of thing - or you could just access a share.

I then send the command again - and it shuts down.

post-14624-1263249394_thumb.jpg

Do you have file sharing working to the xp machine? Are you using Simple file sharing? If so you would have to give guest the ability to remotely shutdown..

Thanks for that! Unfortunately, I had already figured out how to, and gave guests the ability to remotely shut down. Thanks for the help guys

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Posts

    • Someone not paying the BBC license at home is a minor inconvenience to BBC. The real problem are these Ai companies STEALING data through scraping and then selling it under their product. Just pirating something for personal use is nowhere near as bad as stealing it to make corporate profits.
    • Vivaldi 7.4.3684.55 is out.
    • Nvidia and Foxconn planning to deploy humanoid robots within months by Paul Hill Never mind intellectual work, Foxconn and Nvidia are now in talks to deploy humanoid robots at Foxconn’s new Houston factory to carry out physical work, Reuters has reported. The two companies want to have the robots operational by the first quarter of 2026. This is a big development for both companies; it marks the first time Nvidia products will be made with robot assistance, and the first time Foxconn has used robots in an AI server factory on a production line. While the development is certainly interesting, and potentially bad for factory workers, we do not know many of the details such as which robots are being planned for use at the factory, what they’ll look like, or how many will be deployed. While Foxconn has trialed robots made by Chinese firm UBTech, the report states that Foxconn is developing its own robots with Nvidia. The news was told to Reuters via unnamed sources who are not allowed to discuss the matter, so they did so under anonymity. They said that the robots will start work early next year and will contribute to the production of Nvidia’s GB300 AI servers. Foxconn has been training the robots to pick and place objects, insert cables, and do assembly work, but it’s not clear exactly what their role will be on the factory floor and whether jobs will be impacted. One of the sources that spoke to Reuters said that the Houston factory was the best place to trial the robots because it is more spacious, giving robots more room to move about. Last month, a Foxconn subsidiary, which is in charge of the group’s AI server business, said there were two robots being developed which are expected to be showcased in November. One of the robots will have legs, while the other will use a wheeled autonomous mobile robot base. Predictably, the latter version will cost less money than the one with legs, but pricing is unknown at this point. Reuters noted that these two businesses are not the only ones working on robots. It also said that Mercedes-Benz and BMW have been testing robots on production lines and that Tesla is developing its own robots too. China is also getting heavily invested in the sector. Jensen Huang, head of Nvidia, believes that they will be in wide use in manufacturing facilities within five years.
    • That's great and all, but humans have a finite range of vision and a rather slow reaction time. I live in a rural area too and the roads are painted with dear carcasses most of the year. It's not because people choose to hit them. A human simply can't react quick enough when they come firing out of the woods perpendicular to your vision. Those issues can and are being solved with machine vision. The industrial world has been doing this for many years already and cars are finally jumping on the bandwagon using the same technology. It's a known fact that driving is the most dangerous thing (most) people do every day, and that's solely because humans are driving. It's one thing to use technology to be lazy, but it's another to use it to be safe and save lives.
    • Microsoft doesn't make AMD drivers. The "AMD" driver on Windows update comes from AMD, its AMD decision to put it there.
  • Recent Achievements

    • First Post
      emptyother earned a badge
      First Post
    • Week One Done
      Crunchy6 earned a badge
      Week One Done
    • One Month Later
      KynanSEIT earned a badge
      One Month Later
    • One Month Later
      gowtham07 earned a badge
      One Month Later
    • Collaborator
      lethalman went up a rank
      Collaborator
  • Popular Contributors

    1. 1
      +primortal
      670
    2. 2
      ATLien_0
      273
    3. 3
      Michael Scrip
      218
    4. 4
      +FloatingFatMan
      165
    5. 5
      Steven P.
      163
  • Tell a friend

    Love Neowin? Tell a friend!