I found myself flip-flopping on this.
- “Browser - 'cos it’s Perspective.”
- “Server - 'cos it would be unsafe to run code in the browser.”
- “Browser - it’s Java - or is it?”
import os
# -n for Windows ping count. -c for everything else.
os.system('ping -n 1 -w 1000 8.8.8.8 > ping_out.txt')
Where am I pinging from - server or client?