User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the VB.NET section within the Software Development category of DaniWeb, a massive community of 402,523 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,518 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our VB.NET advertiser: Programming Forums
Views: 4627 | Replies: 8
Reply
Join Date: Dec 2004
Location: Hiawassee, Georgia
Posts: 129
Reputation: Geek-Master is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
Geek-Master's Avatar
Geek-Master Geek-Master is offline Offline
Junior Poster

Wake-On LAN to Boot Remote PCs

  #1  
Jan 22nd, 2007
I have custom updates that need to be pushed out ever so often and need all receiving PCs to be booted up. Unfortunately, end-users will shut down their computers when they leave for the day.

I need a way to (based on the MAC address) boot up a PC. All NICs have Wake-On LAN support, I just need to know if VB.NET has any way of booting a PC using the "magic packet."

So does VB.NET support Wake-On LAN?
If in doubt, reach into the trash can and remove the user guide.
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 10,703
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 36
Solved Threads: 878
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Most Valuable Poster

Re: Wake-On LAN to Boot Remote PCs

  #2  
Jan 22nd, 2007
you can't boot up a computer remotely that has been turned off -- that would be a horrible security violation for all sorts of hackers and spammers.

Why don't you have each computer check at bootup time for the updates? Or tell your people to leave their computers on and just log off.
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Reply With Quote  
Join Date: Dec 2004
Location: Hiawassee, Georgia
Posts: 129
Reputation: Geek-Master is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
Geek-Master's Avatar
Geek-Master Geek-Master is offline Offline
Junior Poster

Re: Wake-On LAN to Boot Remote PCs

  #3  
Jan 22nd, 2007
You can't say that you can't boot a Windows box remotely. Wake On LAN is a built in featuer in most motherboards and network cards. Security isn't an issue since MAC addresses aren't routable and if you had a hacker on your local area network, you have bigger problems.
If in doubt, reach into the trash can and remove the user guide.
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 268
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Wake-On LAN to Boot Remote PCs

  #4  
Jan 22nd, 2007
i think .NET does as i use a small piece of PocketPC software written in C#.NET to do it
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Dec 2004
Location: Hiawassee, Georgia
Posts: 129
Reputation: Geek-Master is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
Geek-Master's Avatar
Geek-Master Geek-Master is offline Offline
Junior Poster

Re: Wake-On LAN to Boot Remote PCs

  #5  
Jan 22nd, 2007
I't might lie in the System.Net.Sockets class, but I'll check MSDN
If in doubt, reach into the trash can and remove the user guide.
Reply With Quote  
Join Date: Aug 2005
Location: near St Louis, Missouri, USA
Posts: 10,703
Reputation: Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of Ancient Dragon has much to be proud of 
Rep Power: 36
Solved Threads: 878
Moderator
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Most Valuable Poster

Re: Wake-On LAN to Boot Remote PCs

  #6  
Jan 22nd, 2007
Oops! Yes, I am wrong -- just found out from an expert in my office.
Last edited by Ancient Dragon : Jan 22nd, 2007 at 4:51 pm.
I think it's about time we voted for senators with breasts. After all, we've been voting for boobs long enough. ~Clarie Sargent, Arizona senatorial candidate
Those who are too smart to engage in politics are punished by being governed by those who are dumber. ~Plato
Reply With Quote  
Join Date: Dec 2004
Location: Hiawassee, Georgia
Posts: 129
Reputation: Geek-Master is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
Geek-Master's Avatar
Geek-Master Geek-Master is offline Offline
Junior Poster

Re: Wake-On LAN to Boot Remote PCs

  #7  
Jan 23rd, 2007
I found out that in order to initiate a Wake On LAN boot, the network card must recieve the "magic packet." The magic packet is composed of 6 x 0xFF bytes (FFFFFFFFFFFF), then a sequence of the target MAC address 8 times. So if you had a MAC address of 00-10-20-30-40-50, your magical packet would look like this
FFFFFFFFFFFF001020304050001020304050001020304050001020304050001020304050001020304050001020304050001020304050
This is sent out on a UDP datagram on port 7 or 9 (mostly port 9) in a broadcast. Depending on your collision domain (subnet), you broadcast IP address will vary, but it is the last IP address on your subnet. Then each network cards that are powered (must be set up in the BIOS if not already) will recieve this packet due to the broadcast, but the only network card that reacts is the one with the matching MAC address that is in the UDP datagram.

So all I need to do is build a UDP datagram and send it out on port 9 using the broadcast IP address as my destination. So does anyone know the best way of building UDP datagrams?
If in doubt, reach into the trash can and remove the user guide.
Reply With Quote  
Join Date: Apr 2005
Location: Old Hampshire, Old England (LOL)
Posts: 11,937
Reputation: jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough jbennet is a jewel in the rough 
Rep Power: 30
Solved Threads: 268
Moderator
Featured Poster
jbennet's Avatar
jbennet jbennet is offline Offline
Microsoft Fanboy

Re: Wake-On LAN to Boot Remote PCs

  #8  
Jan 24th, 2007
you dont need to build it

I have a small program installed on my pda which i downloaded and i just type in the mac adress of the pc to wake and it boots up hen i click ok. There should be a similar thing for pcs
TRY MY SUGGESTIONS AT YOUR OWN RISK!
james.bennet1@ntlworld.com
Reply With Quote  
Join Date: Dec 2004
Location: Hiawassee, Georgia
Posts: 129
Reputation: Geek-Master is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 1
Geek-Master's Avatar
Geek-Master Geek-Master is offline Offline
Junior Poster

Re: Wake-On LAN to Boot Remote PCs

  #9  
Jan 24th, 2007
Well I am building a custom update server/client software that needs to be able to update all clients that use a certain vendor software. Then lets the server end know they were updated. The reason I want the ability to boot a PC remotely is so I can run this over night on Saturday when no one is there. If it is integrated then it will all run together and I don't need to be there. I like being a "lazy DBA."
If in doubt, reach into the trash can and remove the user guide.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb VB.NET Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the VB.NET Forum

All times are GMT -4. The time now is 7:04 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC