Monitor all http traffic in wireshark on specific ports
Open wireshark GUI as root user:
sudo wireshark
Start capturing by clicking Capture button and add the following display filter:
http and (tcp.port == 8082 or tcp.port == 8000)
Open wireshark GUI as root user:
sudo wireshark
Start capturing by clicking Capture button and add the following display filter:
http and (tcp.port == 8082 or tcp.port == 8000)
Create TCP dump of all traffic on localhost on port 8888
sudo tcpdump -i lo "port 8888" -w dump