Create TCP dump of all traffic on localhost on port 8888

sudo tcpdump -i lo "port 8888" -w dump