Solved

Computer Waking up on Ping

Posted on 2008-10-24
5
3,006 Views
Last Modified: 2013-11-09
I often use Wake on LAN (WoL) to remotely switch on my home PC via one of my home servers.

However, I seem to have a problem in that while I wait for my PC to boot up, I'll start a continuous ping from the server to my PC using the -t switch, to determine when the PC is awake and ready to roll. Occasionally I'll forget to close this ping, which has the surprising effect when I shut down my PC of it instantly starting it back up again - just like I had sent a WoL packet.

1. Firstly, why does this occur? I thought WoL uses UDP packets and transmits based on MAC address; how can a ping - based upon IP address - work when the PC is off. Just as a note, the ping does reply with a Request Time Out message, so the ping isn't being returned, but something is picking it up and starting my PC up based upon it.

2. Secondly, is there a way to prevent this behaviour? Yes, I should just close the ping window, but suppose someone else decided to ping my computer or do a scan of the entire IP subnet, my PC would wake up.

I know it is the ping - if I pull the network cable, or indeed close the ping, the PC will stop starting up as a result.

Any ideas?
0
Comment
Question by:tigermatt
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 6

Expert Comment

by:Werrock
ID: 22797776
Ping works using ICMP and use IP yes. But so does UDP and IP use ARPs to determine what IP belongs to which computer (MAC). Your ping call will first do an ARP to get that MAC of the other computer. Then it will start to transmit ICMP to it. But it will not use the ARP before every transmit, only when it stops to respond. A timeout is not a response so it will begin to send an ARP after that moment.

Maybe if you could get ping to always use an ARP before each ICMP request it could work. But I do not know how to do this. Hopefully someone else can solve that part.
0
 
LVL 58

Author Comment

by:tigermatt
ID: 22800157

Thanks for that Werrock. Could you just explain in a little more detail how:

1. this would cause my PC to wake up when I am pinging it?
2. What protocol does WoL use. UDP / ICMP? I have no idea when it comes to WoL except on the basis of using it...
0
 
LVL 6

Accepted Solution

by:
Werrock earned 500 total points
ID: 22800242
When Wake on LAN (WoL) is enabled your network card should monitor traffic for a broadcast message with some pre defined value as data. And ye, I think UDP is used since its broadcast. Ping should not trigger WoL but should be able to since ping can also carry data and be sent to a broadcast address.

So the ping problem might be a WoP setting. Check the BIOS if there are any settings to disable this behaviour.
0
 

Expert Comment

by:DAn
ID: 23024389
If its a linux server you will need to set the NIC to wake on only magic packets.

ethtool eth0

this will give some output

to set to magic packet only enter:

ethtool -s eth0 wol g

http://linuxcommand.org/man_pages/ethtool8.html
0
 
LVL 58

Author Comment

by:tigermatt
ID: 23025909

Thanks for that, Windows XP sadly :-)
0

Featured Post

Enroll in June's Course of the Month

June’s Course of the Month is now available! Experts Exchange’s Premium Members, Team Accounts, and Qualified Experts have access to a complimentary course each month as part of their membership—an extra way to sharpen your skills and increase training.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll explain how to setup a Plex Media Server (https://plex.tv/) on a Redhat (Centos) 7 based NAS with screenshots to help those looking for assistance.  What is Plex? If you aren't familiar with Plex, it’s a DLNA media serv…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question