you can run the code with wether on command line:

sudo ./ping_server

sudo ./ping_client

or on web server:

sudo /bin/python /home//Desktop/icmp_pcap/web/app.py