How can I know when my computer is pinged?

1,350

Solution 1

There are different ways to do it, but the easiest would be to install Wireshark on the computer so you can do a packet capture, and put a filter on the capture for icmp traffic only. The capture filter would simply be icmp, can be set in capture options.

Other options would include setting up a mirror port on your switch, and maybe debugging on the router if it goes through a router. But with these, you wouldn't be 100% sure the packet got to the computer (Although if you see the replies, seems to be a safe assumption).

Solution 2

Your aftermarket Windows firewall should have an option to Log any kind of network activity. Find ICMP (the parent protocol of Ping) and set it to Log instead of just Deny or Accept. A really good firewall will allow you to drill down into ICMP and just log Pings, since there are other types of ICMP packets.

Share:
1,350

Related videos on Youtube

liu ming
Author by

liu ming

Updated on September 17, 2022

Comments

  • liu ming
    liu ming over 1 year
     I got a little problem I want to use nltk corpus in hdfs,But failed.For example I want to load nltk.stopwords in my python code.
     I use this http://eigenjoy.com/2009/11/18/how-to-use-cascading-with-hadoop-streaming/
    

    I do all that say,but I don't know how to transform it in my work. My nltk file name is nltk-2.0.1.rc1 my pyam file name is PyYAML.3.0.1 so my commad is:

    zip -r nltkandyaml.zip nltk-2.0.1.rc1 PyYAML.3.0.1
    

    then it said "mv ntlkandyaml.zip /path/to/where/your/mapper/will/be/nltkandyaml.mod"

    My mapper.py save in /home/mapreduce/mapper.py so my command is:

    mv ntlkandyaml.zip /home/mapreduce/nltkandyaml.mod
    

    is that right?

    then i zip my corpus stopwords:

    zip -r /nltk_data/corpora/stopwords-flat.zip *
    

    In my code I use:

    importer = zipimport.zipimporter('nltkandyaml.mod')
    yaml = importer.load_module('PyYAML-3.09')
    nltk = importer.load_module('nltk-2.1.0.1rc1')
    from nltk.corpus.reader import stopwords
    from nltk.corpus.reader import StopWordsCorpusReader
    nltk.data.path+=["."]
    stopwords = StopWordsCorpusReader(nltk.data.find('lib/stopwords-flat.zip'))
    

    finally I use command:

    bin/hadoop jar /home/../streaming/hadoop-0.21.0-streaming.jar -input  
    /user/root/input/voa.txt -output /user/root/output -mapper /home/../mapper.py -reducer  
    /home/../reducer.py -file /home/../nltkandyaml.mod -file /home/../stopwords-flat.zip
    

    please tell me where I'm wrong

    thank you all

    • viper
      viper almost 11 years
      Can you paste the error message you get when you run your hadoop streaming job.
  • liu ming
    liu ming almost 12 years
    Thank for your answer,I use your answer but still failed.It till coudn't work