Lab exercise

The steps to capture the normal TCP connection flow (a sample program is provided as part of this book) are as follows:

  1. Open Wireshark, start capturing the packets, and choose display filter tcp.port==8082.
  2. Compile the Java program TCPServer01.java using the javac command:
    bash$ ~ javac TCPServer01.java
    
  3. Run TCPServer01 using the java command:
    bash$ ~ java TCPServer01
    
  4. Verify the server is listening on port 8082:
    bash$ ~ netstat -an | grep 8082
    tcp46      0      0  *.8082                 *.* LISTEN     
    
  5. Compile the client program Client0301.java using the javac command:
    bash$ ~ javac Client0301.java 
    
  6. Run the client program:
    bash$ ~ java Client0301
    
  7. View and analyze the packet in Wireshark.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.14.249.90